Merge branch 'feature/task1.0.0_xg' into 'feature/task1.0.0'

feat: 登录弹窗隐藏时重置表单

See merge request yanxuan-frontend/shop-pc!56
merge-requests/57/head^2
肖广 2 years ago
commit a9fe82e2ea

@ -107,10 +107,9 @@ export default {
},
set(val) {
if (!val) {
Object.assign(this.form, {
phone: "",
verificationCode: "",
});
this.$refs.ruleForm.resetFields();
this.isAcceptAgreement = false;
this.countDown = 0;
}
this.$emit("update:visible", val);
},

@ -23,7 +23,7 @@ export default function ({$axios, store, route}, inject) {
return result.data;
}
if(result.code === 'TOKEN_FAIL'){
await store.dispatch('logout');
await store.commit('setLoginOut');
store.commit('setLoginVisible');
return result;
}

Loading…
Cancel
Save