@@ -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) {