From 5b259d7e260588796796f31b1494141edb145c60 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 8 Dec 2022 17:09:57 +0800 Subject: [PATCH] 2022-09-08-01 --- ant-design-vue-jeecg/src/utils/util.js | 47 +++++++++++++------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/ant-design-vue-jeecg/src/utils/util.js b/ant-design-vue-jeecg/src/utils/util.js index 7a408605..d63d8850 100644 --- a/ant-design-vue-jeecg/src/utils/util.js +++ b/ant-design-vue-jeecg/src/utils/util.js @@ -1,7 +1,7 @@ import * as api from '@/api/api' import { isURL } from '@/utils/validate' //YU-优化 -//import onlineCommons from '@jeecg/antd-online-mini' +import onlineCommons from '@jeecg/antd-online-mini' export function timeFix() { const time = new Date() @@ -116,28 +116,29 @@ function generateChildRouters (data) { item.meta.url = URL; } //YU-优化 - let componentPath=resolve => require(['@/' + component+'.vue'], resolve) - // if(item.component=="modules/online/cgform/OnlCgformHeadList"){ - // componentPath = onlineCommons.OnlCgformHeadList - // }else if(item.component=="modules/online/cgform/OnlCgformCopyList"){ - // componentPath = onlineCommons.OnlCgformCopyList - // }else if(item.component=="modules/online/cgform/auto/OnlCgformAutoList"){ - // componentPath = onlineCommons.OnlCgformAutoList - // }else if(item.component=="modules/online/cgform/auto/OnlCgformTreeList"){ - // componentPath = onlineCommons.OnlCgformTreeList - // }else if(item.component=="modules/online/cgform/auto/erp/OnlCgformErpList"){ - // componentPath = onlineCommons.OnlCgformErpList - // }else if(item.component=="modules/online/cgform/auto/tab/OnlCgformTabList"){ - // componentPath = onlineCommons.OnlCgformTabList - // }else if(item.component=="modules/online/cgform/auto/innerTable/OnlCgformInnerTableList"){ - // componentPath = onlineCommons.OnlCgformInnerTableList - // }else if(item.component=="modules/online/cgreport/OnlCgreportHeadList"){ - // componentPath = onlineCommons.OnlCgreportHeadList - // }else if(item.component=="modules/online/cgreport/auto/OnlCgreportAutoList"){ - // componentPath = onlineCommons.OnlCgreportAutoList - // }else{ - // componentPath = resolve => require(['@/' + component+'.vue'], resolve) - // } + //let componentPath=resolve => require(['@/' + component+'.vue'], resolve) + let componentPath + if(item.component=="modules/online/cgform/OnlCgformHeadList"){ + componentPath = onlineCommons.OnlCgformHeadList + }else if(item.component=="modules/online/cgform/OnlCgformCopyList"){ + componentPath = onlineCommons.OnlCgformCopyList + }else if(item.component=="modules/online/cgform/auto/OnlCgformAutoList"){ + componentPath = onlineCommons.OnlCgformAutoList + }else if(item.component=="modules/online/cgform/auto/OnlCgformTreeList"){ + componentPath = onlineCommons.OnlCgformTreeList + }else if(item.component=="modules/online/cgform/auto/erp/OnlCgformErpList"){ + componentPath = onlineCommons.OnlCgformErpList + }else if(item.component=="modules/online/cgform/auto/tab/OnlCgformTabList"){ + componentPath = onlineCommons.OnlCgformTabList + }else if(item.component=="modules/online/cgform/auto/innerTable/OnlCgformInnerTableList"){ + componentPath = onlineCommons.OnlCgformInnerTableList + }else if(item.component=="modules/online/cgreport/OnlCgreportHeadList"){ + componentPath = onlineCommons.OnlCgreportHeadList + }else if(item.component=="modules/online/cgreport/auto/OnlCgreportAutoList"){ + componentPath = onlineCommons.OnlCgreportAutoList + }else{ + componentPath = resolve => require(['@/' + component+'.vue'], resolve) + } let menu = { path: item.path,