Skip to content

Commit b6c0138

Browse files
authored
feat: 统一配置命名
1 parent 7658ff4 commit b6c0138

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/core/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const greenText = (text) => `\x1b[32m${text}\x1b[0m`
88
export const config = {
99
appName: 'Gin-Vue-Admin',
1010
showViteLogo: true,
11-
KeepAliveTabs: false,
11+
keepAliveTabs: false,
1212
logs: []
1313
}
1414

web/src/pinia/modules/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const useRouterStore = defineStore('router', () => {
5656

5757
// 1. 首先添加原有的keepAlive配置
5858
keepArrTemp.push(...keepAliveRoutersArr)
59-
if (config.KeepAliveTabs) {
59+
if (config.keepAliveTabs) {
6060
history.forEach((item) => {
6161
// 2. 为所有history中的路由强制启用keep-alive
6262
// 通过routeMap获取路由信息,然后通过pathInfo获取组件名

0 commit comments

Comments
 (0)