feat: 统一配置命名
This commit is contained in:
@@ -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: []
|
||||
}
|
||||
|
||||
|
||||
@@ -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获取组件名
|
||||
|
||||
Reference in New Issue
Block a user