Browse Source

修改待审批默认值

yangc 7 years ago
parent
commit
8d7dc3a418

+ 1 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_index_ctrl.js

@@ -60,7 +60,7 @@ define(['app/app', 'calendar'], function(app) {
                     url: $scope.urlPrex + '/api/userspace/apply/count',
                     params: {spaceUU: $scope.userInfo.enterprise.uu}
                 }).success(function (data) {
-                    $scope.count = data.content[311];
+                    $scope.count = data.content[311] || 0;
                 }).error(function (response) {
                     toaster.pop('error', '获取未处理审批数据失败');
                 });