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() - }, - }, - }, }