2024-11-04 15:55:23 +00:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
2024-11-03 22:10:21 +00:00
|
|
|
import Container from '../views/Container.vue'
|
|
|
|
import Home from '../views/Home.vue'
|
2024-11-04 16:31:04 +00:00
|
|
|
import Update from '../views/Update.vue'
|
2024-11-02 18:16:32 +00:00
|
|
|
|
|
|
|
const router = createRouter({
|
2024-11-04 15:55:23 +00:00
|
|
|
history: createWebHashHistory(import.meta.env.BASE_URL),
|
2024-11-02 18:16:32 +00:00
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
2024-11-03 19:42:55 +00:00
|
|
|
component: Home,
|
|
|
|
},
|
2024-11-04 16:31:04 +00:00
|
|
|
{
|
|
|
|
path: '/show/:name',
|
|
|
|
component: Container,
|
|
|
|
},
|
2024-11-04 15:55:23 +00:00
|
|
|
{
|
|
|
|
path: '/new',
|
2024-11-04 16:31:04 +00:00
|
|
|
component: Update,
|
2024-11-04 15:55:23 +00:00
|
|
|
},
|
2024-11-03 19:42:55 +00:00
|
|
|
{
|
2024-11-04 16:31:04 +00:00
|
|
|
path: '/update/:name',
|
|
|
|
component: Update,
|
2024-11-02 18:16:32 +00:00
|
|
|
},
|
2024-11-02 21:43:27 +00:00
|
|
|
],
|
2024-11-02 18:16:32 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|