mirror of
https://github.com/certd/certd.git
synced 2026-05-18 14:27:36 +08:00
perf: 禁止页面缓存,点击tab页签可以刷新数据
This commit is contained in:
@@ -40,11 +40,11 @@ function transformOneResource(resource: any, parent: any) {
|
|||||||
if (route.component == null) {
|
if (route.component == null) {
|
||||||
route.component = LayoutPass;
|
route.component = LayoutPass;
|
||||||
}
|
}
|
||||||
if (route?.meta?.cache !== false) {
|
if (route?.meta?.cache !== true) {
|
||||||
if (route.meta == null) {
|
if (route.meta == null) {
|
||||||
route.meta = {};
|
route.meta = {};
|
||||||
}
|
}
|
||||||
route.meta.cache = true;
|
route.meta.cache = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (resource.children) {
|
if (resource.children) {
|
||||||
|
|||||||
Reference in New Issue
Block a user