import { createRouter, createWebHashHistory } from 'vue-router' const router = createRouter({ history: createWebHashHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'home', // 自动引导到 /editor redirect: '/editor' }, { path: '/fabric', name: 'fabric', component: () => import('@/components/FabricView.vue') }, { path: '/editor', name: 'editor', // component: HomeView, component: () => import('../editor/ModelMain.vue') }, { path: '/about', name: 'about', // route level code-splitting // this generates a separate chunk (About.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => import('../views/AboutView.vue') }, { path: '/DataForm01', name: 'DataForm01', component: () => import('@/pages/DataForm01.vue') } ] }) export default router