Browse Source

BUG修复

seimin 3 years ago
parent
commit
5c63abace7
1 changed files with 1 additions and 1 deletions
  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;