halo/console/src
Ryan Wang bb0a5f114a
feat: record the post query conditions in the route query parameters (#4102)
#### What type of PR is this?

/area console
/kind feature
/milestone 2.8.x

#### What this PR does / why we need it:

在文章数据管理列表页面路由中记录查询条件,包括分页信息、筛选信息等。可以保证在刷新页面或者从文章编辑页面返回时保留之前的查询状态。

<img width="1758" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/270948d6-d585-4b36-ad3a-93064cf47548">

TODO:

- [x] 记录筛选条件,因为路由参数只能使用基本类型,但是原来的筛选条件的变量都是完整对象。

#### Which issue(s) this PR fixes:

Fixes #4098 

#### Special notes for your reviewer:

需要测试:

1. 文章管理列表的所有筛选项是否可以正常工作。
2. 尝试设置部分筛选,然后刷新页面,观察筛选条件是否正常保留。

#### Does this PR introduce a user-facing change?

```release-note
Console 端的文章管理列表支持在地址栏记录筛选条件。
```
2023-07-12 06:17:20 +00:00
..
assets Move root to console 2023-03-02 15:49:22 +08:00
build Move root to console 2023-03-02 15:49:22 +08:00
components refactor: logic of post and singlepage data filtering (#4193) 2023-07-11 07:15:10 +00:00
composables chore: bump tanstack query version and disable refetchOnWindowFocus option by default (#3771) 2023-04-23 03:37:56 +00:00
constants refactor: re-design login-related form (#3608) 2023-03-30 16:10:15 +00:00
formkit chore: bump formkit version to 0.17.3 (#4103) 2023-06-21 08:28:13 +00:00
layouts perf: improve shadow style of side menu (#3638) 2023-03-30 07:34:14 +00:00
locales refactor: logic of comment data filtering (#4195) 2023-07-12 01:53:12 +00:00
modules feat: record the post query conditions in the route query parameters (#4102) 2023-07-12 06:17:20 +00:00
router perf: improve the experience of redirection after login (#4014) 2023-05-31 06:55:01 +00:00
setup refactor: data list filter components (#4182) 2023-07-07 08:23:06 +00:00
stores Move root to console 2023-03-02 15:49:22 +08:00
styles Move root to console 2023-03-02 15:49:22 +08:00
utils refactor: simplify request exception handling (#4129) 2023-06-28 06:44:12 +00:00
views perf: improve the experience of redirection after login (#4014) 2023-05-31 06:55:01 +00:00
App.vue fix: modal height issue in ios devices (#4106) 2023-06-25 02:06:14 +00:00
main.ts chore: bump tanstack query version and disable refetchOnWindowFocus option by default (#3771) 2023-04-23 03:37:56 +00:00