From fb213caf2848cde87cf76c0ed9cdae452e836b08 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 3 Mar 2025 11:48:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(app):=20=E4=BC=98=E5=8C=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=88=87=E6=8D=A2=E5=8A=A8=E7=94=BB=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=99=BB=E5=BD=95=E9=A1=B5=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 App.vue 中添加路由中间件,控制页面切换动画方向 - 在 login 页面添加 keepalive 属性,提高性能和用户体验 --- app/app.vue | 5 ++--- app/pages/login/index.vue | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.vue b/app/app.vue index 1612250..e6e6688 100644 --- a/app/app.vue +++ b/app/app.vue @@ -11,7 +11,7 @@ useHead({ ], }) - +const route = useRoute() // 添加路由中间件来处理过渡方向 const router = useRouter() const slideDirection = ref('slide-left') @@ -37,7 +37,6 @@ if (to.path==='/'){ // 提供过渡名称给页面组件 provide('slideDirection', slideDirection) -