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

merge-requests/56/head
xiaoguang 2 years ago
parent 8a238e0b3b
commit c543931458

@ -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