Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-09-09 10:11:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c78dd5f8158a29b28e5b2c1466fb3f9947b2f10c
c78dd5f8
1 parent
6bea233b
fix(router): 保留所有原始查询参数当跳转到周期选择页面时
修改路由跳转逻辑,不再只保留code参数,而是保留所有原始查询参数,确保页面跳转时参数不丢失
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/router.js
src/router.js
View file @
c78dd5f
...
...
@@ -102,10 +102,10 @@ router.beforeEach((to, from, next) => {
query
:
to
.
query
,
params
:
to
.
params
}));
// 跳转到周期选择页面
// 跳转到周期选择页面
,保留所有原始参数
next
({
path
:
'/cycle-selection'
,
query
:
{
code
:
to
.
query
.
code
}
query
:
to
.
query
// 保留所有原始查询参数
});
return
;
}
...
...
Please
register
or
login
to post a comment