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