feat: 统一配置命名

This commit is contained in:
PiexlMax(奇淼
2025-11-09 16:15:22 +08:00
committed by GitHub
parent 7658ff46c3
commit b6c0138dd2
2 changed files with 2 additions and 2 deletions

View File

@@ -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: []
}

View File

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