feat: 新增 keep alive 缓存功能

This commit is contained in:
pany
2023-02-22 15:53:04 +08:00
parent 95b9691b20
commit 15fa81f5fe
13 changed files with 155 additions and 10 deletions

View File

@@ -43,5 +43,10 @@ declare module "vue-router" {
* 该属性适合使用在有 hidden: true 属性的路由上
*/
activeMenu?: string
/**
* 是否缓存该路由页面
* 默认为 false为 true 时代表需要缓存,此时该路由和该页面都需要设置一致的 Name
*/
keepAlive?: boolean
}
}