下载地址

This commit is contained in:
851673013@qq.com 2022-06-17 11:38:16 +08:00
parent 6c2db1ee8a
commit 090816c33d
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<template>
<a-upload
v-model:file-list="fileList"
:action="`${window.SITE_CONFIG.apiURL}/upload`"
:action="`${apiURL}/upload`"
list-type="picture"
class="upload-list-inline"
:maxCount="props.maxCount"
@ -47,6 +47,7 @@
list: { type: Array, default: null },
emitFlag: { type: String, default: '' },
})
const apiURL = window.SITE_CONFIG.apiURL
const fileList = ref([])
if (props.list.length > 0) {
fileList.value = JSON.parse(JSON.stringify(props.list))