Commit e224e3d0 authored by 罗超's avatar 罗超

修正注销

parent b8b6a933
...@@ -85,9 +85,9 @@ export const useUserStore = defineStore('user', { ...@@ -85,9 +85,9 @@ export const useUserStore = defineStore('user', {
}, },
async setUserLoginOut(){ async setUserLoginOut(){
await UserService.UserSignOutAsync()
this.token='' this.token=''
this.userInfo={} this.userInfo={}
await UserService.UserSignOutAsync()
window.location.href='/login' window.location.href='/login'
}, },
setNewUserInfo(user:any){ setNewUserInfo(user:any){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment