coffee/src/router/index.js
2024-12-08 20:58:12 +08:00

23 lines
665 B
JavaScript

// 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'
import FirstPage from '@/components/FirstPage.vue'
// import MenuItem from '@/view/MenuItem.vue'
const router = createRouter({
history: createWebHashHistory(),
routes: [
{
path: '/',
component: coffeeIndex,
},
{ path: '/coffee', component: coffeeIndex },
{ path: '/hello', component: HelloWorld },
{ path: '/first', component: FirstPage },
]
})
export default router