og-image/src/router.js

32 lines
516 B
JavaScript
Raw Normal View History

2023-02-24 22:11:53 +01:00
import { createRouter, createWebHashHistory } from 'vue-router'
2023-01-30 09:01:16 +01:00
import Home from './page/Home.vue'
import About from './page/About.vue'
2023-02-24 22:15:32 +01:00
// const APP_BASE_URL = '/'
2023-01-30 12:51:57 +01:00
2023-01-30 09:01:16 +01:00
const routes = [
{
2023-02-24 22:18:05 +01:00
path: '/',
2023-01-30 14:04:01 +01:00
name: 'home',
2023-01-30 09:01:16 +01:00
component: Home,
meta: {
2023-01-30 14:04:01 +01:00
title: 'Generator - OG:IMAGE'
2023-01-30 09:01:16 +01:00
}
},
2023-02-24 22:11:53 +01:00
{
path: '/about',
name: 'About',
component: About,
meta: {
title: 'About'
}
},
2023-01-30 09:01:16 +01:00
];
const router = createRouter({
2023-02-24 22:11:53 +01:00
history: createWebHashHistory(),
2023-01-30 09:01:16 +01:00
routes,
});
export default router;