Merge pull request '修复了语言' (#120) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/120
This commit is contained in:
commit
4e06d7011c
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
|
2
src/types/index.d.ts
vendored
2
src/types/index.d.ts
vendored
@ -58,7 +58,7 @@ export interface UserInfo {
|
||||
video: string;
|
||||
desc: string;
|
||||
money: string;
|
||||
|
||||
languageValue: number;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user