Browse Source

标签处理

wangmh 9 years ago
parent
commit
7440da395f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main/webapp/resources/js/index/app.js

+ 5 - 1
src/main/webapp/resources/js/index/app.js

@@ -9635,7 +9635,11 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         AccountEnterprise.get({}, function (data) {
             $scope.loading = false;
             $scope.enterprise = data;
-            $scope.tags = data.tags.split(',');  // 将逗号分隔的标签字符串转换成数组,便于操作
+            if (data.tags) {
+                $scope.tags = data.tags.split(',');  // 将逗号分隔的标签字符串转换成数组,便于操作
+            } else {
+                $scope.tags = [];
+            }
 
             // 获取付款企业信息
             DeputyOrder.paycompanies({enuu: $scope.enterprise.uu}, {}, function (data) {