Răsfoiți Sursa

fix: 添加预警内容为空时的返回逻辑

liujt 8 luni în urmă
părinte
comite
00ae45285b

+ 1 - 0
src/views/rulesManagement/earlyWarningRules/components/matter-add.vue

@@ -642,6 +642,7 @@
         console.log(form, 'form');
         console.log(form, 'form');
         if (form.actionList.length < 1) {
         if (form.actionList.length < 1) {
           this.$message.error('请添加预警内容!');
           this.$message.error('请添加预警内容!');
+          return;
         }
         }
         let actionListLen = form.actionList.filter((item) => item.matterRuleId);
         let actionListLen = form.actionList.filter((item) => item.matterRuleId);
         if (actionListLen?.length != form.actionList.length) {
         if (actionListLen?.length != form.actionList.length) {