详情文件预览

This commit is contained in:
zhujiyan
2024-06-06 22:14:20 +08:00
parent 5722259cc1
commit b3fbb68881
15 changed files with 238 additions and 77 deletions

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'
import staticRoutes from '@/router/static'
import { useAdminInfo } from '@/stores/adminInfo'
import NProgress from 'nprogress'

View File

@@ -225,6 +225,14 @@ const staticRoutes: Array<RouteRecordRaw> = [
title: pageTitle('notFound') // 页面不存在
}
},
{
path: '/previewFile',
name: 'previewFile',
component: () => import('@/components/PreviewFile/index.vue'),
meta: {
title: pageTitle('previewFile')
}
},
{
// 后台找不到页面了-可能是路由未加载上
path: adminBaseRoutePath + ':path(.*)*',