修复了语言
This commit is contained in:
parent
73eceefbf0
commit
6f7322628e
@ -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