|
|
|
@ -130,7 +130,7 @@ export const formatPath = (ele, first) => {
|
|
|
|
|
const propsDefault = website.menu; |
|
|
|
|
const icon = ele[propsDefault.icon]; |
|
|
|
|
ele[propsDefault.icon] = !icon ? propsDefault.iconDefault : icon; |
|
|
|
|
ele.meta = { keepAlive: ele.isOpen == 2 }; |
|
|
|
|
ele.meta = { keepAlive: ele.isOpen === 2 }; |
|
|
|
|
const iframeComponent = 'components/iframe/main'; |
|
|
|
|
const iframeSrc = href => { |
|
|
|
|
return href.replace(/&/g, '#'); |
|
|
|
@ -147,7 +147,7 @@ export const formatPath = (ele, first) => {
|
|
|
|
|
ele[propsDefault.children] && |
|
|
|
|
ele[propsDefault.children].forEach(child => { |
|
|
|
|
child.component = 'views' + child[propsDefault.path]; |
|
|
|
|
child.meta = { keepAlive: child.isOpen == 2 }; |
|
|
|
|
child.meta = { keepAlive: child.isOpen === 2 }; |
|
|
|
|
if (isURL(child[propsDefault.href])) { |
|
|
|
|
let href = child[propsDefault.href]; |
|
|
|
|
child[propsDefault.path] = ele[propsDefault.path] + '/' + child.code; |
|
|
|
|