python-flask和Vue两种模式初模板
This commit is contained in:
24
inventory-web/src/router/index.ts
Normal file
24
inventory-web/src/router/index.ts
Normal file
@ -0,0 +1,24 @@
|
||||
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
|
||||
Reference in New Issue
Block a user