perf: 禁止页面缓存,点击tab页签可以刷新数据

pull/243/head
xiaojunnuo 2024-11-01 10:23:45 +08:00
parent 396dc34a84
commit 7ad4b55ee0
1 changed files with 2 additions and 2 deletions

View File

@ -40,11 +40,11 @@ function transformOneResource(resource: any, parent: any) {
if (route.component == null) {
route.component = LayoutPass;
}
if (route?.meta?.cache !== false) {
if (route?.meta?.cache !== true) {
if (route.meta == null) {
route.meta = {};
}
route.meta.cache = true;
route.meta.cache = false;
}
}
if (resource.children) {