Finish store

This commit is contained in:
2024-02-18 17:50:31 +08:00
parent ae16808e1d
commit 3c495cfa16
11 changed files with 362 additions and 41 deletions

View File

@@ -17,8 +17,7 @@ export const tools: RouteJsonObject[] = [
name: '工具商店',
titlePostfix: ' - 商店',
icon: lazy(() => import('~icons/oxygen/store')),
menu: true,
auth: true
menu: true
},
{
path: 'create',
@@ -50,7 +49,24 @@ export const tools: RouteJsonObject[] = [
absolutePath: '/edit',
id: 'tools-edit',
component: lazy(() => import('@/pages/Tools/Edit')),
name: '查看'
name: '编辑',
auth: true
},
{
path: 'source/:username/:toolId/:ver',
absolutePath: '/source',
id: 'tools-source-ver',
component: lazy(() => import('@/pages/Tools/Source')),
name: '源码',
auth: true
},
{
path: 'source/:username/:toolId',
absolutePath: '/source',
id: 'tools-source',
component: lazy(() => import('@/pages/Tools/Source')),
name: '源码',
auth: true
},
{
path: '*',