hookehuyr

fix(router): 添加x_cycle参数跳过周期检查逻辑

当URL中包含x_cycle参数时,跳过周期检查流程,直接进入页面
......@@ -69,6 +69,11 @@ const checkCycleSelection = (to) => {
return Promise.resolve(false);
}
// 如果URL中包含x_cycle参数,跳过周期检查
if (to.query.x_cycle) {
return Promise.resolve(false);
}
return getCycleListAPI({ form_code: to.query.code })
.then(({ data }) => {
// 如果需要周期选择且有周期列表
......@@ -113,6 +118,12 @@ router.beforeEach((to, from, next) => {
return;
}
// 如果URL中包含x_cycle参数,跳过周期检查
if (to.query.x_cycle) {
next();
return;
}
// 如果没有表单代码,直接通过
if (!to.query.code) {
next();
......