| 12345678910111213141516171819 |
- import { createRouter, createWebHistory } from 'vue-router'
- const routes = [
- {
- path: '/',
- name: 'index',
- component: () => import('../views/index.vue'),
- meta: {
- title: '首页'
- }
- },
- ]
- const router = createRouter({
- history: createWebHistory(process.env.BASE_URL),
- routes
- })
- export default router
|