|
@@ -244,12 +244,11 @@ defineExpose({
|
|
|
? []
|
|
|
: modelValue[prop]?.split(',').map((it) => ({ url: it })),
|
|
|
}"
|
|
|
- @change="
|
|
|
- ({ fileList }) =>
|
|
|
- (modelValue[prop] = fileList
|
|
|
- .map(({ response }) => JSON.parse(response).data)
|
|
|
- .join(','))
|
|
|
- "
|
|
|
+ @change="({ fileList }) => {
|
|
|
+ const newUrls = fileList.map(({ response }) => JSON.parse(response).data);
|
|
|
+ const existingUrls = modelValue[prop]?.split(',') ?? [];
|
|
|
+ modelValue[prop] = [...existingUrls, ...newUrls].join(',');
|
|
|
+ }"
|
|
|
></wd-upload>
|
|
|
<wd-button
|
|
|
v-if="type === 'Submit'"
|