From a7cb3dc2c715b4a0d3d085eba9581b5a692c051c Mon Sep 17 00:00:00 2001 From: ikmkj <1@qq,com> Date: Thu, 31 Jul 2025 18:25:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(components):=20=E5=9C=A8=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=92=8C=E6=B3=A8=E5=86=8C=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 LoginPage.vue 和 RegisterPage.vue 中添加返回首页按钮 - 实现 goToHome 方法,用于跳转到首页- 优化用户操作流程,提供更便捷的页面导航 --- biji-qianduan/src/components/LoginPage.vue | 5 +++++ biji-qianduan/src/components/RegisterPage.vue | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/biji-qianduan/src/components/LoginPage.vue b/biji-qianduan/src/components/LoginPage.vue index 8d7b202..8bc0e97 100644 --- a/biji-qianduan/src/components/LoginPage.vue +++ b/biji-qianduan/src/components/LoginPage.vue @@ -16,6 +16,7 @@ 登录 注册 + 返回首页 @@ -58,6 +59,10 @@ const handleLogin = async () => { const goToRegister = () => { router.push('/register'); }; + +const goToHome = () => { + router.push('/home'); +};