🚧 add sidebar
This commit is contained in:
43
src/router/modules/albums.ts
Normal file
43
src/router/modules/albums.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import Phoalbum from "@/views/Album/Phoalbum/Phoalbum.vue";
|
||||
import PeopleAlbum from "@/views/Album/PeopleAlbum/PeopleAlbum.vue";
|
||||
import LocationAlbum from "@/views/Album/LocationAlbum/LocationAlbum.vue";
|
||||
import ThingAlbum from "@/views/Album/ThingAlbum/ThingAlbum.vue";
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/main/album/albums',
|
||||
name: 'albums',
|
||||
component: Phoalbum,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '相册'
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/main/album/people',
|
||||
name: 'people',
|
||||
component: PeopleAlbum,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '人物相册'
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/main/album/location',
|
||||
name: 'location',
|
||||
component: LocationAlbum,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '地点相册'
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/main/album/thing',
|
||||
name: 'thing',
|
||||
component: ThingAlbum,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '事物相册'
|
||||
},
|
||||
},
|
||||
];
|
@@ -1,11 +1,22 @@
|
||||
import photo from "@/router/modules/photos.ts";
|
||||
import albums from "@/router/modules/albums.ts";
|
||||
import recycling_bin from "@/router/modules/recycling_bin.ts";
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/main',
|
||||
name: 'main',
|
||||
redirect: '/main/photos',
|
||||
component: () => import('@/views/Main/MainPage.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '主页'
|
||||
}
|
||||
},
|
||||
children: [
|
||||
...photo,
|
||||
...albums,
|
||||
...recycling_bin
|
||||
|
||||
]
|
||||
}
|
||||
];
|
||||
|
23
src/router/modules/photos.ts
Normal file
23
src/router/modules/photos.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import AllPhoto from "@/views/Photograph/AllPhoto/AllPhoto.vue";
|
||||
import RecentUpload from "@/views/Photograph/RecentUpload/RecentUpload.vue";
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/main/photo/all',
|
||||
name: 'photos',
|
||||
component: AllPhoto,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '全部照片'
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/main/photo/recent',
|
||||
name: 'recent',
|
||||
component: RecentUpload,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '最近上传'
|
||||
},
|
||||
},
|
||||
];
|
13
src/router/modules/recycling_bin.ts
Normal file
13
src/router/modules/recycling_bin.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import RecyclingBin from "@/views/RecyclingBin/RecyclingBin.vue";
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/main/recycling',
|
||||
name: 'recycling',
|
||||
component: RecyclingBin,
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
title: '回收站'
|
||||
},
|
||||
},
|
||||
];
|
Reference in New Issue
Block a user