Merge pull request '修复了语言' (#120) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/120
This commit is contained in:
luyuan 2020-11-10 09:55:52 +08:00
commit 4e06d7011c
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{
setToken();
store.commit("login", true);
store.dispatch("setUserInfo");
await store.dispatch("setUserInfo");
await router.push("/mine/archives")
location.reload();
}

View File

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

View File

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