update msg
Showing
1 changed file
with
3 additions
and
4 deletions
| ... | @@ -14,6 +14,9 @@ angular.module('myApp') | ... | @@ -14,6 +14,9 @@ angular.module('myApp') |
| 14 | } | 14 | } |
| 15 | var code = getUrl('code') | 15 | var code = getUrl('code') |
| 16 | var loginUrlCode = function () { | 16 | var loginUrlCode = function () { |
| 17 | $scope.userinfo = {}; | ||
| 18 | $scope.userinfo.userName = "未登录"; | ||
| 19 | $scope.userinfo.loginState = false; | ||
| 17 | if (code) { | 20 | if (code) { |
| 18 | globalService.saveData('loginCode', code) | 21 | globalService.saveData('loginCode', code) |
| 19 | dingdaService.verifyThirdCode(code).success(function (res) { | 22 | dingdaService.verifyThirdCode(code).success(function (res) { |
| ... | @@ -46,10 +49,6 @@ angular.module('myApp') | ... | @@ -46,10 +49,6 @@ angular.module('myApp') |
| 46 | $state.go('login', {}, { reload: true }); | 49 | $state.go('login', {}, { reload: true }); |
| 47 | } | 50 | } |
| 48 | }) | 51 | }) |
| 49 | } else { | ||
| 50 | $scope.userinfo = {}; | ||
| 51 | $scope.userinfo.userName = "未登录"; | ||
| 52 | $scope.userinfo.loginState = false; | ||
| 53 | } | 52 | } |
| 54 | } | 53 | } |
| 55 | $scope.userinfo = globalService.getData("user"); | 54 | $scope.userinfo = globalService.getData("user"); | ... | ... |
-
Please register or sign in to post a comment