mirror of https://github.com/certd/certd
perf: 禁止页面缓存,点击tab页签可以刷新数据
parent
396dc34a84
commit
7ad4b55ee0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue