ソースを参照

优化未配置消息通知,告警编辑bug

yukai 2 年 前
コミット
f0bd7c4360
1 ファイル変更5 行追加3 行削除
  1. 5 3
      src/views/iot/alarm/setting/component/edit.vue

+ 5 - 3
src/views/iot/alarm/setting/component/edit.vue

@@ -291,9 +291,11 @@ export default defineComponent({
 							state.sendGatewayData[index] = res.Data;
 						});
 
-						notice.template.configIddetail(value.noticeConfig).then((res: any) => {
-							state.noticeConfigData[index] = [res];
-						});
+						if(value.noticeConfig){
+							notice.template.configIddetail(value.noticeConfig).then((res: any) => {
+								state.noticeConfigData[index] = [res];
+							});
+						}
 					});
 
 					state.action = res.data.performAction.action;