Files
jinshen-website/app/pages/preview/[id].vue
R2m1liA ff143f980a
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m59s
feat: 添加preview路由用于文件预览
- preview路由预览文件
- FilePreviewer组件
- 删除Document卡片的下载按钮,使用单独的页面用于文件下载
- preview布局
2025-10-28 14:35:50 +08:00

14 lines
228 B
Vue

<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>