2024-12-04 17:27:55 +08:00
|
|
|
// vue router的index
|
|
|
|
// import Vue from 'vue'
|
|
|
|
import { createWebHashHistory , createRouter } from 'vue-router'
|
|
|
|
import coffeeIndex from '@/components/coffeeIndex.vue'
|
|
|
|
import HelloWorld from '@/components/HelloWorld.vue'
|
2024-12-08 20:58:12 +08:00
|
|
|
import FirstPage from '@/components/FirstPage.vue'
|
2024-12-04 17:27:55 +08:00
|
|
|
// import MenuItem from '@/view/MenuItem.vue'
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: coffeeIndex,
|
|
|
|
},
|
|
|
|
{ path: '/coffee', component: coffeeIndex },
|
|
|
|
{ path: '/hello', component: HelloWorld },
|
2024-12-08 20:58:12 +08:00
|
|
|
{ path: '/first', component: FirstPage },
|
2024-12-04 17:27:55 +08:00
|
|
|
]
|
|
|
|
})
|
|
|
|
export default router
|
|
|
|
|