Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit a22bf287 authored by 62160286's avatar 62160286
Browse files

Add component MyPage in index.js

parent 99af30ac
No related branches found
No related tags found
No related merge requests found
import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import MyPage from '../views/MyPage.vue'
const routes = [
{
......@@ -14,6 +15,11 @@ const routes = [
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
},
{
path: '/mypage',
name: 'MyPage',
component: MyPage
}
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment