文件上传组件BUG修改
This commit is contained in:
parent
eed0b62c5a
commit
9900583333
|
@ -1,14 +1,14 @@
|
||||||
<!--
|
<!--
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-09 15:41:19
|
* @Date: 2022-06-09 15:41:19
|
||||||
* @LastEditors: hisense.wuhongjian
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-06-16 16:58:19
|
* @LastEditTime: 2022-06-17 11:15:33
|
||||||
* @Description: 上传组件
|
* @Description: 上传组件
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<a-upload
|
<a-upload
|
||||||
v-model:file-list="fileList"
|
v-model:file-list="fileList"
|
||||||
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
:action="`${apiURL}/upload`"
|
||||||
list-type="picture"
|
list-type="picture"
|
||||||
class="upload-list-inline"
|
class="upload-list-inline"
|
||||||
:maxCount="props.maxCount"
|
:maxCount="props.maxCount"
|
||||||
|
@ -47,6 +47,8 @@
|
||||||
list: { type: Array, default: null },
|
list: { type: Array, default: null },
|
||||||
emitFlag: { type: String, default: '' },
|
emitFlag: { type: String, default: '' },
|
||||||
})
|
})
|
||||||
|
console.log('window.SITE_CONFIG.apiURL', window.SITE_CONFIG.apiURL)
|
||||||
|
const apiURL = window.SITE_CONFIG.apiURL
|
||||||
const fileList = ref([])
|
const fileList = ref([])
|
||||||
if (props.list.length > 0) {
|
if (props.list.length > 0) {
|
||||||
fileList.value = JSON.parse(JSON.stringify(props.list))
|
fileList.value = JSON.parse(JSON.stringify(props.list))
|
||||||
|
|
Loading…
Reference in New Issue