Files
KCGL/inventory-web/src/router/index.ts

24 lines
574 B
TypeScript
Raw Normal View History

import { createRouter, createWebHistory } from 'vue-router'
const routes = [
// --- 修改点:根路径不再重定向,而是显示 Dashboard 首页 ---
{
path: '/',
name: 'Dashboard',
component: () => import('@/views/dashboard/index.vue')
},
// --- 保持原有的入库页路由不变 ---
{
path: '/stock/inbound',
name: 'StockInbound',
component: () => import('@/views/stock/inbound.vue')
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router