hookehuyr

fix(router): 保留所有原始查询参数当跳转到周期选择页面时

修改路由跳转逻辑,不再只保留code参数,而是保留所有原始查询参数,确保页面跳转时参数不丢失
......@@ -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;
}
......