From c5439314588c8900a675e3b4bd90775026f471b2 Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Mon, 16 May 2022 11:24:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=99=BB=E5=BD=95=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=97=B6=E9=87=8D=E7=BD=AE=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BsLogin.vue | 7 +++---- plugins/axiosTk.js | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/BsLogin.vue b/components/BsLogin.vue index f75ddbd..c326611 100644 --- a/components/BsLogin.vue +++ b/components/BsLogin.vue @@ -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); }, diff --git a/plugins/axiosTk.js b/plugins/axiosTk.js index b108c06..141af11 100644 --- a/plugins/axiosTk.js +++ b/plugins/axiosTk.js @@ -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; }