refactor: 将文件请求由app端转到server端
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m2s

This commit is contained in:
2025-11-12 18:19:21 +08:00
parent a5f3895794
commit a520775a8d
5 changed files with 49 additions and 28 deletions

View File

@ -122,6 +122,8 @@
const errorText = computed(() => error.value?.message ?? null);
const fileMeta = computed(() => props.file ?? data.value ?? null);
logger.debug('FilePreviewer - fileMeta:', fileMeta.value);
/** 预览源地址:支持在 file.url 上追加额外 query如临时 token、inline */
const src = computed<string>(() => {
if (!fileMeta.value) return '';