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