帐号退出

This commit is contained in:
2020-10-14 09:32:12 +08:00
parent 9fa44512e4
commit 5e4db83a24
5 changed files with 12 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ export async function loginpass(phone: string, password: string){
message.error("存储错误, 请允许网页使用本地存储!")
}else{
setToken();
store.commit("login");
store.commit("login", true);
store.dispatch("setUserInfo");
router.push("/mine/archives")
}