diff --git a/src/scripts/router.ts b/src/scripts/router.ts index 1e4b5e1..9cc832a 100644 --- a/src/scripts/router.ts +++ b/src/scripts/router.ts @@ -33,6 +33,12 @@ const routes: Array = [ meta: {title: '相册', nav: true}, component: () => import('../views/Photo.vue') }, + { + path: '/photo/:id', + name: 'Photo ID', + meta: {title: '相册', navBookmark: 'Photo'}, + component: () => import('../views/Photo.vue') + }, { path: '/others', name: 'Others', diff --git a/src/views/Photo.vue b/src/views/Photo.vue index 28fa77b..7af5051 100644 --- a/src/views/Photo.vue +++ b/src/views/Photo.vue @@ -1,5 +1,6 @@