From b92c98a222e1029db2fef72dd169bd2575f75508 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 15 May 2024 09:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E7=AD=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/views/login.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sgzb-ui/src/views/login.vue b/sgzb-ui/src/views/login.vue index d699a26d..0274a90c 100644 --- a/sgzb-ui/src/views/login.vue +++ b/sgzb-ui/src/views/login.vue @@ -174,6 +174,11 @@ export default { }, immediate: true, }, + activeName: { + handler(newVal) { + this.$refs['loginForm'].clearValidate() + }, + }, }, created() { // console.log(this.$route.query.redirect.split("?")[1]) @@ -311,13 +316,6 @@ export default { }) }, }, - watch: { - activeName: { - handler(newVal) { - this.$refs['loginForm'].clearValidate() - }, - }, - }, }