将iframe页面的展示模式改为可以缓存的方式

This commit is contained in:
神话
2022-05-01 16:49:08 +08:00
parent 9a40a5148e
commit 9c45cdfa91
3 changed files with 71 additions and 14 deletions

View File

@@ -123,7 +123,6 @@ function generateChildRouters (data) {
let menu = {
path: item.url,
name: item.text,
component: componentPath,
meta: {
id: item.id,
title: item.text,
@@ -132,9 +131,14 @@ function generateChildRouters (data) {
componentName:componentName,
internalOrExternal:true,
keepAlive: true
// permissionList:""
}
}
if(item.component.indexOf("IframePageView")>-1){
//给带iframe的页面进行改造
menu.iframeComponent = componentPath
} else {
menu.component = componentPath
}
if (item.children && item.children.length > 0) {
menu.children = [...generateChildRouters( item.children)];
}