feat:修改
This commit is contained in:
@@ -36,7 +36,7 @@ const actions = {
|
||||
function filterAsyncRoutes(routes) {
|
||||
return routes.filter(route => {
|
||||
if (!route.component || route.component === '') {
|
||||
route.component = () => import('@/modules/dashboardBig/views/index.vue')
|
||||
route.component = () => import('@/views/screens/acid-rolling/index.vue')
|
||||
} else if (route.component !== 'Layout') {
|
||||
route.component = loadComponent(route.component)
|
||||
}
|
||||
@@ -51,7 +51,6 @@ function loadComponent(componentPath) {
|
||||
const path = componentPath.replace(/^\//, '').replace(/\.vue$/, '')
|
||||
const componentMap = {
|
||||
'Layout': () => import('@/layout/index.vue'),
|
||||
'modules/dashboardBig/views/index': () => import('@/modules/dashboardBig/views/index.vue'),
|
||||
'modules/dashboardBig/views/order': () => import('@/modules/dashboardBig/views/order.vue'),
|
||||
'modules/dashboardBig/views/cost': () => import('@/modules/dashboardBig/views/cost.vue'),
|
||||
'modules/dashboardBig/views/energy': () => import('@/modules/dashboardBig/views/energy.vue'),
|
||||
@@ -60,7 +59,7 @@ function loadComponent(componentPath) {
|
||||
'modules/dashboardBig/views/stopAnalysis': () => import('@/modules/dashboardBig/views/stopAnalysis.vue'),
|
||||
'screens/acid-rolling/index': () => import('@/views/screens/acid-rolling/index.vue')
|
||||
}
|
||||
return componentMap[path] || (() => import('@/modules/dashboardBig/views/index.vue'))
|
||||
return componentMap[path] || (() => import('@/views/screens/acid-rolling/index.vue'))
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user