feat:修改

This commit is contained in:
2026-05-25 11:41:57 +08:00
parent 2030e68ff9
commit 10ffb2e194
9 changed files with 136 additions and 618 deletions

View File

@@ -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 {