2022-09-08-01

zhc4dev
Gitea 2 years ago
parent 1ff2d6bbf0
commit 5b259d7e26
  1. 47
      ant-design-vue-jeecg/src/utils/util.js

@ -1,7 +1,7 @@
import * as api from '@/api/api' import * as api from '@/api/api'
import { isURL } from '@/utils/validate' import { isURL } from '@/utils/validate'
//YU-优化 //YU-优化
//import onlineCommons from '@jeecg/antd-online-mini' import onlineCommons from '@jeecg/antd-online-mini'
export function timeFix() { export function timeFix() {
const time = new Date() const time = new Date()
@ -116,28 +116,29 @@ function generateChildRouters (data) {
item.meta.url = URL; item.meta.url = URL;
} }
//YU-优化 //YU-优化
let componentPath=resolve => require(['@/' + component+'.vue'], resolve) //let componentPath=resolve => require(['@/' + component+'.vue'], resolve)
// if(item.component=="modules/online/cgform/OnlCgformHeadList"){ let componentPath
// componentPath = onlineCommons.OnlCgformHeadList if(item.component=="modules/online/cgform/OnlCgformHeadList"){
// }else if(item.component=="modules/online/cgform/OnlCgformCopyList"){ componentPath = onlineCommons.OnlCgformHeadList
// componentPath = onlineCommons.OnlCgformCopyList }else if(item.component=="modules/online/cgform/OnlCgformCopyList"){
// }else if(item.component=="modules/online/cgform/auto/OnlCgformAutoList"){ componentPath = onlineCommons.OnlCgformCopyList
// componentPath = onlineCommons.OnlCgformAutoList }else if(item.component=="modules/online/cgform/auto/OnlCgformAutoList"){
// }else if(item.component=="modules/online/cgform/auto/OnlCgformTreeList"){ componentPath = onlineCommons.OnlCgformAutoList
// componentPath = onlineCommons.OnlCgformTreeList }else if(item.component=="modules/online/cgform/auto/OnlCgformTreeList"){
// }else if(item.component=="modules/online/cgform/auto/erp/OnlCgformErpList"){ componentPath = onlineCommons.OnlCgformTreeList
// componentPath = onlineCommons.OnlCgformErpList }else if(item.component=="modules/online/cgform/auto/erp/OnlCgformErpList"){
// }else if(item.component=="modules/online/cgform/auto/tab/OnlCgformTabList"){ componentPath = onlineCommons.OnlCgformErpList
// componentPath = onlineCommons.OnlCgformTabList }else if(item.component=="modules/online/cgform/auto/tab/OnlCgformTabList"){
// }else if(item.component=="modules/online/cgform/auto/innerTable/OnlCgformInnerTableList"){ componentPath = onlineCommons.OnlCgformTabList
// componentPath = onlineCommons.OnlCgformInnerTableList }else if(item.component=="modules/online/cgform/auto/innerTable/OnlCgformInnerTableList"){
// }else if(item.component=="modules/online/cgreport/OnlCgreportHeadList"){ componentPath = onlineCommons.OnlCgformInnerTableList
// componentPath = onlineCommons.OnlCgreportHeadList }else if(item.component=="modules/online/cgreport/OnlCgreportHeadList"){
// }else if(item.component=="modules/online/cgreport/auto/OnlCgreportAutoList"){ componentPath = onlineCommons.OnlCgreportHeadList
// componentPath = onlineCommons.OnlCgreportAutoList }else if(item.component=="modules/online/cgreport/auto/OnlCgreportAutoList"){
// }else{ componentPath = onlineCommons.OnlCgreportAutoList
// componentPath = resolve => require(['@/' + component+'.vue'], resolve) }else{
// } componentPath = resolve => require(['@/' + component+'.vue'], resolve)
}
let menu = { let menu = {
path: item.path, path: item.path,

Loading…
Cancel
Save