feat: 统一配置命名
This commit is contained in:
@@ -8,7 +8,7 @@ const greenText = (text) => `\x1b[32m${text}\x1b[0m`
|
|||||||
export const config = {
|
export const config = {
|
||||||
appName: 'Gin-Vue-Admin',
|
appName: 'Gin-Vue-Admin',
|
||||||
showViteLogo: true,
|
showViteLogo: true,
|
||||||
KeepAliveTabs: false,
|
keepAliveTabs: false,
|
||||||
logs: []
|
logs: []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export const useRouterStore = defineStore('router', () => {
|
|||||||
|
|
||||||
// 1. 首先添加原有的keepAlive配置
|
// 1. 首先添加原有的keepAlive配置
|
||||||
keepArrTemp.push(...keepAliveRoutersArr)
|
keepArrTemp.push(...keepAliveRoutersArr)
|
||||||
if (config.KeepAliveTabs) {
|
if (config.keepAliveTabs) {
|
||||||
history.forEach((item) => {
|
history.forEach((item) => {
|
||||||
// 2. 为所有history中的路由强制启用keep-alive
|
// 2. 为所有history中的路由强制启用keep-alive
|
||||||
// 通过routeMap获取路由信息,然后通过pathInfo获取组件名
|
// 通过routeMap获取路由信息,然后通过pathInfo获取组件名
|
||||||
|
|||||||
Reference in New Issue
Block a user