From b6c0138dd2f4fca266de089f91f7cfde8a45ef47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?PiexlMax=28=E5=A5=87=E6=B7=BC?= <165128580+pixelmaxQm@users.noreply.github.com> Date: Sun, 9 Nov 2025 16:15:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/core/config.js | 2 +- web/src/pinia/modules/router.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/core/config.js b/web/src/core/config.js index ca7bb633..175e2425 100644 --- a/web/src/core/config.js +++ b/web/src/core/config.js @@ -8,7 +8,7 @@ const greenText = (text) => `\x1b[32m${text}\x1b[0m` export const config = { appName: 'Gin-Vue-Admin', showViteLogo: true, - KeepAliveTabs: false, + keepAliveTabs: false, logs: [] } diff --git a/web/src/pinia/modules/router.js b/web/src/pinia/modules/router.js index c5c49ea0..66850eb5 100644 --- a/web/src/pinia/modules/router.js +++ b/web/src/pinia/modules/router.js @@ -56,7 +56,7 @@ export const useRouterStore = defineStore('router', () => { // 1. 首先添加原有的keepAlive配置 keepArrTemp.push(...keepAliveRoutersArr) - if (config.KeepAliveTabs) { + if (config.keepAliveTabs) { history.forEach((item) => { // 2. 为所有history中的路由强制启用keep-alive // 通过routeMap获取路由信息,然后通过pathInfo获取组件名