Showing
2 changed files
with
3 additions
and
1 deletions
@@ -72,7 +72,7 @@ export default { | @@ -72,7 +72,7 @@ export default { | ||
72 | }).then(ret => { | 72 | }).then(ret => { |
73 | if (ret.code === 200) { | 73 | if (ret.code === 200) { |
74 | this.loading = false; | 74 | this.loading = false; |
75 | - Vue.prop('needUpdate', true); | 75 | + Vue.prop('needUpdate', void 0); |
76 | this.$router.push('/'); | 76 | this.$router.push('/'); |
77 | } else { | 77 | } else { |
78 | this.loading = false; | 78 | this.loading = false; |
@@ -11,6 +11,8 @@ export default { | @@ -11,6 +11,8 @@ export default { | ||
11 | Vue.$store.set(Vue.$config.storeKeys.user, crypto.aesEncrypt(user)); | 11 | Vue.$store.set(Vue.$config.storeKeys.user, crypto.aesEncrypt(user)); |
12 | Vue.prop('purviews', purviews.deep); | 12 | Vue.prop('purviews', purviews.deep); |
13 | Vue.prop('oriPurviews', purviews.ori); | 13 | Vue.prop('oriPurviews', purviews.ori); |
14 | + Vue.prop('user', user); | ||
15 | + Vue.prop('isLogin', true); | ||
14 | }, | 16 | }, |
15 | 17 | ||
16 | // 权限验证 | 18 | // 权限验证 |
-
Please register or login to post a comment