1. **删除“数据管理”**: * 从 `UI/src/App.vue` 的导航菜单中移除了“数据管理”项。 * 从 `UI/src/router/index.js` 中删除了对应的 `/data` 路由。 * 删除了视图文件 `UI/src/views/DataView.vue`。 2. **提升“店铺管理”**: * 将“店铺管理”菜单项在 `UI/src/App.vue` 中的位置提升,以填补原“数据管理”的位置,使其在导航中更加突出。 ### 涉及文件 * `UI/src/App.vue` * `UI/src/router/index.js` * `UI/src/views/DataView.vue` (已删除)
70 lines
1.8 KiB
JavaScript
70 lines
1.8 KiB
JavaScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import DashboardView from '../views/DashboardView.vue'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'dashboard',
|
|
component: DashboardView
|
|
},
|
|
{
|
|
path: '/training',
|
|
name: 'training',
|
|
redirect: '/training/product'
|
|
},
|
|
{
|
|
path: '/training/product',
|
|
name: 'product-training',
|
|
component: () => import('../views/training/ProductTrainingView.vue')
|
|
},
|
|
{
|
|
path: '/training/store',
|
|
name: 'store-training',
|
|
component: () => import('../views/training/StoreTrainingView.vue')
|
|
},
|
|
{
|
|
path: '/training/global',
|
|
name: 'global-training',
|
|
component: () => import('../views/training/GlobalTrainingView.vue')
|
|
},
|
|
{
|
|
path: '/prediction',
|
|
name: 'prediction',
|
|
redirect: '/prediction/product'
|
|
},
|
|
{
|
|
path: '/prediction/product',
|
|
name: 'product-prediction',
|
|
component: () => import('../views/prediction/ProductPredictionView.vue')
|
|
},
|
|
{
|
|
path: '/prediction/store',
|
|
name: 'store-prediction',
|
|
component: () => import('../views/prediction/StorePredictionView.vue')
|
|
},
|
|
{
|
|
path: '/prediction/global',
|
|
name: 'global-prediction',
|
|
component: () => import('../views/prediction/GlobalPredictionView.vue')
|
|
},
|
|
{
|
|
path: '/history',
|
|
name: 'history',
|
|
component: () => import('../views/HistoryView.vue')
|
|
},
|
|
{
|
|
path: '/management',
|
|
name: 'management',
|
|
component: () => import('../views/ManagementView.vue')
|
|
},
|
|
{
|
|
path: '/store-management',
|
|
name: 'store-management',
|
|
component: () => import('../views/StoreManagementView.vue')
|
|
}
|
|
]
|
|
})
|
|
|
|
export default router
|