浏览代码

BUG修复

seimin 3 年之前
父节点
当前提交
5c63abace7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/js/controllers/system/notificationCtrl.js

+ 1 - 1
assets/js/controllers/system/notificationCtrl.js

@@ -301,7 +301,7 @@ app.controller('notificationCtr', ["$rootScope", "$scope", "$state", "$timeout",
301 301
                             alert("通知内容【" + filterArr[i].tabName + "】不能为空!");
302 302
                             return;
303 303
                         } else {
304
-                            var nowArr = [...new Set([...filterArr[i].processContent.match(/\[\$[^\$\[\]]*?\$\]/g), ...$scope.varArr])];
304
+                            var nowArr = [...new Set([...(filterArr[i].processContent.match(/\[\$[^\$\[\]]*?\$\]/g) || []), ...$scope.varArr])];
305 305
                             if (nowArr.length !== $scope.varArr.length) {
306 306
                                 alert("【" + filterArr[i].tabName + "】请填写有效的变量名称!");
307 307
                                 return;