Skip to content

Commit

Permalink
Merge branch 'master' into update_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wjymtg committed Dec 18, 2024
2 parents d31bc87 + 2a1654e commit b998e7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/stores/userStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export const useStatusStore = defineStore('userStatus', {
loginRefresh() {
get_user_info()
.then((info: { data: any }) => {
sessionStorage.setItem('userInfo', JSON.stringify(info.data))
this.infoData = info.data
this.isLogin = true
if (info !== null) {
sessionStorage.setItem('userInfo', JSON.stringify(info.data))
this.infoData = info.data
this.isLogin = true
}
})
.catch(() => {
this.isLogin = false
Expand Down

0 comments on commit b998e7a

Please sign in to comment.