修复了语言

This commit is contained in:
luyuan 2020-11-10 09:55:21 +08:00
parent 73eceefbf0
commit 6f7322628e
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
3 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export async function loginpass(phone: string, password: string,type?: number,sm
}else{ }else{
setToken(); setToken();
store.commit("login", true); store.commit("login", true);
store.dispatch("setUserInfo"); await store.dispatch("setUserInfo");
await router.push("/mine/archives") await router.push("/mine/archives")
location.reload(); location.reload();
} }

View File

@ -97,6 +97,7 @@ export default createStore({
async setUserInfo({ commit }){ async setUserInfo({ commit }){
const user = await userinfo(); const user = await userinfo();
if(user != '未登录'){ if(user != '未登录'){
saveValue("Lanvuage", user.languageValue);
commit('setUserInfo', user); commit('setUserInfo', user);
} else { } else {
const info = await getaddr(); const info = await getaddr();

View File

@ -58,7 +58,7 @@ export interface UserInfo {
video: string; video: string;
desc: string; desc: string;
money: string; money: string;
languageValue: number;
} }