1.查看
<a-table
:columns="applyColumns"
:data-source="uploadFile"
:pagination="false"
>
<template #bodyCell="{ column,record }">
<template v-if="column.key === 'operation'">
<a :href="record.enclosure" target="_blank">查看</a>
<a-divider type="vertical" />
<a @click="handleDownload(record.enclosure,record.name)">下载</a>
</template>
</template>
</a-table>
2.下载
const handleDownload = (imgsrc, name) => {
//下载图片地址和图片名
let image = new Image()
// 解决跨域 Canvas 污染问题
image.setAttribute('crossOrigi