delete 在线开发相关代码
This commit is contained in:
+24
-22
@@ -2,7 +2,8 @@ import Vue from 'vue'
|
||||
import * as api from '@/api/api'
|
||||
import { isURL } from '@/utils/validate'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import onlineCommons from '@/components/onlineForm/onlineForm'
|
||||
// import onlineCommons from '@/components/onlineForm/onlineForm'
|
||||
|
||||
//
|
||||
export function timeFix () {
|
||||
const time = new Date()
|
||||
@@ -115,27 +116,27 @@ function generateChildRouters (data) {
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
// 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)
|
||||
// }
|
||||
|
||||
const menu = {
|
||||
path: item.path,
|
||||
@@ -558,6 +559,7 @@ export function removeArrayElement (array, prod, value) {
|
||||
array.splice(index, 1)
|
||||
}
|
||||
}
|
||||
|
||||
export function findFirstRoute (data) {
|
||||
if (data[0]) {
|
||||
if (data[0] && data[0].children && data[0].children.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user