feat: 添加preview路由用于文件预览
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m59s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m59s
- preview路由预览文件 - FilePreviewer组件 - 删除Document卡片的下载按钮,使用单独的页面用于文件下载 - preview布局
This commit is contained in:
13
app/pages/preview/[id].vue
Normal file
13
app/pages/preview/[id].vue
Normal 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>
|
||||
Reference in New Issue
Block a user