From 5b3c7512a2c68a14a30498331fd31721d7bf3836 Mon Sep 17 00:00:00 2001 From: caijun Date: Fri, 23 Jan 2026 11:12:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/login/index.vue b/pages/login/index.vue index 5523c36..a99732b 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -499,7 +499,7 @@ this.imgUrl = `/api/oauth/ImageCode/${this.codeLength || 4}/${timestamp}` }, login() { - const userStore = useUserStore() + this.$refs.dataForm.validate(valid => { if (valid) { this.loading = true @@ -526,6 +526,7 @@ }, // 普通登录 getLogin(){ + const userStore = useUserStore() let query = { tenantName: this.formData.tenantName, username: this.formData.username,