|
|
@ -12,7 +12,7 @@ import { h } from 'vue'; |
|
|
|
import { useGlobSetting } from '/@/hooks/setting'; |
|
|
|
import { useGlobSetting } from '/@/hooks/setting'; |
|
|
|
import { Button } from 'ant-design-vue'; |
|
|
|
import { Button } from 'ant-design-vue'; |
|
|
|
const { filePreviewUrl = '' } = useGlobSetting(); |
|
|
|
const { filePreviewUrl = '' } = useGlobSetting(); |
|
|
|
import { Api } from '/@/api/platform/system/controller/file'; |
|
|
|
import { Api } from '/@/api/platform/system/controller/ossFile'; |
|
|
|
import { encodeURL } from 'js-base64'; |
|
|
|
import { encodeURL } from 'js-base64'; |
|
|
|
import { getCloudProxyUrl } from '/@/utils'; |
|
|
|
import { getCloudProxyUrl } from '/@/utils'; |
|
|
|
|
|
|
|
|
|
|
@ -33,7 +33,6 @@ export const columns: BasicColumn[] = [ |
|
|
|
ellipsis: true, |
|
|
|
ellipsis: true, |
|
|
|
width: 380, |
|
|
|
width: 380, |
|
|
|
customRender: ({ record }) => { |
|
|
|
customRender: ({ record }) => { |
|
|
|
console.log(`${getCloudProxyUrl()}${Api.get}/${record.bucketName}/${record.fileName}`) |
|
|
|
|
|
|
|
const url = encodeURL(`${getCloudProxyUrl()}${Api.get}/${record.bucketName}/${record.fileName}`); |
|
|
|
const url = encodeURL(`${getCloudProxyUrl()}${Api.get}/${record.bucketName}/${record.fileName}`); |
|
|
|
return h(Button, { |
|
|
|
return h(Button, { |
|
|
|
type: 'link', |
|
|
|
type: 'link', |