You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
970 B
40 lines
970 B
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
|
|
|