1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-11 11:40:23 +08:00

front: finish docx & back: init

This commit is contained in:
源文雨
2023-03-16 14:03:58 +08:00
parent 6c823457b9
commit a72afdbb5e
26 changed files with 453 additions and 31 deletions

View File

@@ -1,8 +1,10 @@
import type { AppRouteModule } from '/@/router/types'
import { ExceptionEnum } from '/@/enums/exceptionEnum'
import { LAYOUT } from '/@/router/constant'
import { t } from '/@/hooks/web/useI18n'
const ExceptionPage = () => import('/@/views/sys/exception/Exception.vue')
const filelist: AppRouteModule = {
path: '/filelist',
name: 'FileList',
@@ -25,6 +27,28 @@ const filelist: AppRouteModule = {
hideMenu: true,
},
},
{
path: 'file/:id',
name: 'FilePage',
component: () => import('/@/views/page/file/index.vue'),
meta: {
title: t('routes.filelist.file'),
carryParam: true,
icon: 'bi:filetype-docx',
hideMenu: true,
},
},
{
path: '404',
name: 'PageNotFound',
component: ExceptionPage,
props: {
status: ExceptionEnum.PAGE_NOT_FOUND,
},
meta: {
title: '404',
},
},
],
}