Просмотр исходного кода

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

liujt 9 месяцев назад
Родитель
Сommit
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');
         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) {