|
@@ -103,12 +103,16 @@
|
|
|
files.map((item) => {
|
|
|
urls.push(item.url);
|
|
|
});
|
|
|
- state.fileUrls += ',' + urls.toString();
|
|
|
+ if (state.fileUrls) {
|
|
|
+ state.fileUrls += ',';
|
|
|
+ }
|
|
|
+ state.fileUrls += urls.toString();
|
|
|
}
|
|
|
emit('change', state.fileUrls);
|
|
|
}
|
|
|
|
|
|
watch(props, (props: PropsType) => {
|
|
|
+ state.fileUrls = props.value;
|
|
|
state.file_list = props.value.split(',');
|
|
|
});
|
|
|
function getFilename(filePath) {
|