文件上传组件BUG修改

This commit is contained in:
a0049873 2022-06-17 11:16:10 +08:00
parent eed0b62c5a
commit 9900583333
1 changed files with 5 additions and 3 deletions

View File

@ -1,14 +1,14 @@
<!--
* @Author: hisense.liangjunhua
* @Date: 2022-06-09 15:41:19
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-06-16 16:58:19
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-17 11:15:33
* @Description: 上传组件
-->
<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,8 @@
list: { type: Array, default: null },
emitFlag: { type: String, default: '' },
})
console.log('window.SITE_CONFIG.apiURL', window.SITE_CONFIG.apiURL)
const apiURL = window.SITE_CONFIG.apiURL
const fileList = ref([])
if (props.list.length > 0) {
fileList.value = JSON.parse(JSON.stringify(props.list))