Skip to content

Commit e5cf1d4

Browse files
committed
get expire time
1 parent 1be7f90 commit e5cf1d4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/Auth/UserAuth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const userAuth = {
1414
if (user) {
1515
this.user.name = user.profile.name;
1616
this.user.isAuthenticated = true;
17+
window.localStorage.setItem("USER_INFO", this.user);
1718
window.localStorage.setItem("USER_NAME", this.user.name);
1819
} else {
1920
this.user.name = "";

src/style/m.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ nav { width: 100%; height: auto; background: rgba(0,0,0,0.5); margin-top: 18px;
3636
.menu:before { right: 20px; }
3737
/**/
3838
.box, article { width: 96% !important;}
39-
article { }
39+
4040
.lbox { width: 100% }
4141
.rbox {
4242
float: left;

src/views/LoginCallbackView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default {
2323
await applicationUserManager.signinRedirectCallback()
2424
let user = await applicationUserManager.getUser()
2525
this.$store.commit("saveToken", user.access_token);
26+
window.localStorage.setItem("USER_INFO", this.user);
2627
window.localStorage.setItem("USER_NAME", user.profile.name);
2728
this.$router.push({name: 'home'})
2829
} catch (e) {

0 commit comments

Comments
 (0)