forked from github/dataease
Merge pull request #3689 from dataease/pr@dev_memory_component
Pr@dev memory component
This commit is contained in:
commit
67f28b3b4b
@ -29,7 +29,7 @@ const actions = {
|
||||
commit('SET_CURRENT_PATH', path)
|
||||
}
|
||||
}
|
||||
export const fullScreenRouters = ['XpackThemeForm', 'system/datasource/DsForm', 'dataset/form']
|
||||
export const fullScreenRouters = ['XpackThemeForm', 'system/datasource/DsForm', 'dataset/Form']
|
||||
export const filterAsyncRouter = (routers) => { // 遍历后台传来的路由字符串,转换为组件对象
|
||||
return routers.map(router => {
|
||||
if (!fullScreenRouters.includes(router.component) && router.type === 1 && router.pid === 0 && router.component && router.component !== 'Layout') {
|
||||
@ -37,7 +37,7 @@ export const filterAsyncRouter = (routers) => { // 遍历后台传来的路由
|
||||
}
|
||||
if (router.isPlugin) {
|
||||
const jsName = router.component
|
||||
router.component = 'system/plugin/dynamic'
|
||||
router.component = 'system/plugin/Dynamic'
|
||||
router.props = {
|
||||
jsname: jsName,
|
||||
menuid: router.id,
|
||||
|
Loading…
Reference in New Issue
Block a user