feat: 添加preview路由用于文件预览
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m59s

- preview路由预览文件
- FilePreviewer组件
- 删除Document卡片的下载按钮,使用单独的页面用于文件下载
- preview布局
This commit is contained in:
2025-10-28 14:35:50 +08:00
parent 4e7131b291
commit ff143f980a
4 changed files with 195 additions and 7 deletions

View File

@ -0,0 +1,13 @@
<template>
<file-previewer :file-id="id" />
</template>
<script setup lang="ts">
definePageMeta({
layout: 'preview',
});
const route = useRoute();
const id = computed(() => route.params.id as string);
</script>