Merge pull request #3040 from dataease/pr@dev@feat_ds_form_router

feat(数据源): 新增数据源表单路由
This commit is contained in:
fit2cloud-chenyw 2022-09-05 11:38:04 +08:00 committed by GitHub
commit f6dbf5ffb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ const actions = {
commit('SET_CURRENT_PATH', path)
}
}
export const fullScreenRouters = ['XpackThemeForm']
export const fullScreenRouters = ['XpackThemeForm', 'system/datasource/DsForm']
export const filterAsyncRouter = (routers) => { // 遍历后台传来的路由字符串,转换为组件对象
return routers.map(router => {
if (!fullScreenRouters.includes(router.component) && router.type === 1 && router.pid === 0 && router.component && router.component !== 'Layout') {