瀏覽代碼

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

liujt 9 月之前
父節點
當前提交
00ae45285b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/views/rulesManagement/earlyWarningRules/components/matter-add.vue

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

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