fix:图片访问

fix:权限修改
This commit is contained in:
dzc committed 2026-10-29 14:26:56 +08:00
1 parent dec9fd96e3
commit d86bc810cc
69 files changed
+1264 -458

No files matched your search

+4 -3
View File
@@ -50,7 +50,7 @@
</el-table-column>
<el-table-column prop="downloadUrl" label="下载地址" width="220" show-overflow-tooltip>
<template #default="{ row }">
<el-link :href="row.downloadUrl" target="_blank" :underline="false">打开</el-link>
<el-link :href="$fileUrl(row.downloadUrl)" target="_blank" :underline="false">下载</el-link>
<el-divider direction="vertical" />
<el-button text type="primary" icon="CopyDocument" @click="copyUrl(row.downloadUrl)">复制</el-button>
</template>
@@ -89,6 +89,7 @@
</template>
<script setup lang="ts" name="systemAppVersion">
import { accessFileUrl, isProtectedFile } from '/@/utils/file-access';
import { BasicTableProps, useTable } from "/@/hooks/table";
import * as appVersionApi from "/@/api/integrated/app-version";
import { useMessage, useMessageBox } from "/@/hooks/message";
@@ -157,8 +158,8 @@ const handleDelete = async (ids: string[]) => {
const copyUrl = async (url: string) => {
try {
await navigator.clipboard.writeText(url || '')
useMessage().success('已复制下载链接')
await navigator.clipboard.writeText(accessFileUrl(url))
useMessage().success(isProtectedFile(url) ? '已复制临时文件地址,请通过应用加载,不支持浏览器直接打开' : '已复制下载链接')
} catch (e) {
useMessage().error('复制失败')
}