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获取组件名