python-flask和Vue两种模式初模板

This commit is contained in:
dxc
2026-01-26 17:00:12 +08:00
parent ee9f4aed3e
commit 2f8a5c55b1
36 changed files with 943 additions and 126 deletions

View 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