|
@@ -26,7 +26,7 @@ define(['app/app'], function(app) {
|
|
|
toaster.pop('error', '获取企业信息失败');
|
|
toaster.pop('error', '获取企业信息失败');
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- if ($scope.userInfo.enterprise) {
|
|
|
|
|
|
|
+ if (typeof $scope.userInfo != 'undefined' && typeof $scope.userInfo.enterprise != 'undefined') {
|
|
|
getEnterprise();
|
|
getEnterprise();
|
|
|
} else {
|
|
} else {
|
|
|
AuthenticationService.getAuthentication().success(function (data) {
|
|
AuthenticationService.getAuthentication().success(function (data) {
|