From a4980df3f1a0ab58c256b50977fe1bf15108f85d Mon Sep 17 00:00:00 2001
From: gaoxq <376340421@qq.com>
Date: Sat, 4 Apr 2026 00:04:37 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A2=9E=E5=8A=A0=E9=AA=8C?=
=?UTF-8?q?=E8=AF=81=E7=A0=81=E5=88=87=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web-vue/src/views/login/LoginForm.vue | 5 +++++
web-vue/src/views/login/index.vue | 9 +++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/web-vue/src/views/login/LoginForm.vue b/web-vue/src/views/login/LoginForm.vue
index 695f3da..bdfa309 100644
--- a/web-vue/src/views/login/LoginForm.vue
+++ b/web-vue/src/views/login/LoginForm.vue
@@ -91,6 +91,11 @@ const refreshCaptcha = async () => {
}
}
+// 暴露方法给父组件
+defineExpose({
+ refreshCaptcha
+})
+
const handleLogin = async () => {
if (!isFormComplete.value || loading.value) return
diff --git a/web-vue/src/views/login/index.vue b/web-vue/src/views/login/index.vue
index 0223ae8..e6b3371 100644
--- a/web-vue/src/views/login/index.vue
+++ b/web-vue/src/views/login/index.vue
@@ -40,10 +40,10 @@
-