调整登录
This commit is contained in:
@@ -13,7 +13,7 @@ export const mainStore = defineStore('main', {
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
return this.token = res.data
|
||||
}
|
||||
} else return Promise.reject()
|
||||
})
|
||||
},
|
||||
getUserInfo() {
|
||||
@@ -34,4 +34,4 @@ export const mainStore = defineStore('main', {
|
||||
{storage: localStorage}
|
||||
]
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user