add apis

This commit is contained in:
2025-02-22 23:41:22 +08:00
parent 2063a99c83
commit c7288b2cb4
34 changed files with 1170 additions and 328 deletions

View File

@@ -1,12 +1,14 @@
import photo from "@/router/modules/photos.ts";
import albums from "@/router/modules/albums.ts";
import recycling_bin from "@/router/modules/recycling_bin.ts";
import share from "@/router/modules/share.ts";
import upscale from "@/router/modules/upscale.ts";
export default [
{
path: '/main',
name: 'main',
redirect: '/main/photos',
redirect: '/main/photo/all',
component: () => import('@/views/Main/MainPage.vue'),
meta: {
requiresAuth: true,
@@ -16,25 +18,18 @@ export default [
...photo,
...albums,
...recycling_bin,
{
path: '/main/photo/upscale',
name: 'upscale',
component: () => import('@/views/Upscale/index.vue'),
meta: {
requiresAuth: true,
title: '图像修复'
},
},
{
path: '/main/photo/share',
name: 'share',
component: () => import('@/views/ImageShare/ImageShare.vue'),
meta: {
requiresAuth: true,
title: '快传'
}
}
...share,
...upscale,
]
}, {
path: '/main/share/list/:id',
name: 'share-list',
component: () => import('@/views/Share/ShareViewList/index.vue'),
meta: {
requiresAuth: true,
title: '分享列表'
},
}
];

View File

@@ -0,0 +1,11 @@
export default [
{
path: '/main/photo/share',
name: 'share',
component: () => import('@/views/Share/ImageShare/ImageShare.vue'),
meta: {
requiresAuth: true,
title: '快传'
}
}
];

View File

@@ -0,0 +1,11 @@
export default [
{
path: '/main/photo/upscale',
name: 'upscale',
component: () => import('@/views/Upscale/index.vue'),
meta: {
requiresAuth: true,
title: '图像修复'
},
},
];