diff --git a/src/api/index.ts b/src/api/index.ts index 066afa1..a0bbfd4 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -33,6 +33,9 @@ export async function loginpass(phone: string, password: string,type?: number,sm store.commit("login", true); store.dispatch("setUserInfo"); router.push("/mine/archives") + setTimeout(()=>{ + location.reload(); + }, 1000) } } } @@ -636,9 +639,9 @@ export async function editsystemsetting(e?: any): Promise { const res = await put(`member/${store.state.userinfo.memberid}`,newdata); console.log(res) if(res.code == 0){ - location.reload(); message.success("修改成功") store.dispatch("setUserInfo"); + location.reload(); return true; }else{ message.error(res.msg);