hookehuyr

fix(router): 修复周期选择判断逻辑,增加page_type参数检查

只有当page_type为add或未设置时才进行周期判断,避免在非新增场景下误触发周期选择
...@@ -49,6 +49,11 @@ const checkCycleSelection = async (to) => { ...@@ -49,6 +49,11 @@ const checkCycleSelection = async (to) => {
49 return false; 49 return false;
50 } 50 }
51 51
52 + // 只有在page_type=add或者没有page_type参数时才进行周期判断
53 + if (to.query.page_type && to.query.page_type !== 'add') {
54 + return false;
55 + }
56 +
52 // 如果没有表单代码,不需要周期选择 57 // 如果没有表单代码,不需要周期选择
53 if (!to.query.code) { 58 if (!to.query.code) {
54 return false; 59 return false;
......