mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-08-25 00:37:14 +00:00
v3.0.0 重磅更新
This commit is contained in:
+14
-14
@@ -9,23 +9,23 @@
|
||||
*
|
||||
-->
|
||||
<template>
|
||||
<div class="container">
|
||||
<a-image
|
||||
class="img-prev"
|
||||
:style="{ display: 'none' }"
|
||||
:preview="{
|
||||
visible,
|
||||
onVisibleChange: setVisible,
|
||||
}"
|
||||
:src="previewUrl"
|
||||
/>
|
||||
</div>
|
||||
<div class="container">
|
||||
<a-image
|
||||
class="img-prev"
|
||||
:style="{ display: 'none' }"
|
||||
:preview="{
|
||||
visible,
|
||||
onVisibleChange: setVisible,
|
||||
}"
|
||||
:src="previewUrl"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { download } from '/@/lib/axios';
|
||||
import { fileApi } from '/@/api/support/file/file-api';
|
||||
import { getDownload } from '/@/lib/axios';
|
||||
import { fileApi } from '/src/api/support/file-api';
|
||||
import { smartSentry } from '/@/lib/smart-sentry';
|
||||
import { SmartLoading } from '/@/components/framework/smart-loading';
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
setVisible(true);
|
||||
return;
|
||||
}
|
||||
download(fileItem.fileName, fileItem.fileUrl);
|
||||
window.open(fileItem.fileUrl);
|
||||
}
|
||||
|
||||
// 判断图片类型
|
||||
|
||||
Reference in New Issue
Block a user