✨ (notes) add routing between notes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
|
||||
import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
import Home from '@/views/Home.vue'
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
@@ -11,6 +12,12 @@ const routes: Array<RouteRecordRaw> = [
|
||||
path: '/about',
|
||||
name: 'About',
|
||||
component: () => import(/* webpackChunkName: "about" */ '@/views/About.vue')
|
||||
},
|
||||
{
|
||||
path: '/note/:user/:repo',
|
||||
name: 'Note',
|
||||
props: true,
|
||||
component: () => import(/* webpackChunkName: "note" */ '@/views/Note.vue')
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user