|
@@ -61,7 +61,7 @@
|
|
|
drag
|
|
|
:limit="1"
|
|
|
:before-upload="upload"
|
|
|
- :file-list="fileList"
|
|
|
+ :file-list="fileLists"
|
|
|
:http-request="uploadNewFile"
|
|
|
:on-success="handleSuccess"
|
|
|
:on-preview="previewFile"
|
|
@@ -149,6 +149,7 @@ const klblId = ref(0);
|
|
|
const fmtId = ref(0);
|
|
|
const pmtId = ref(0);
|
|
|
const activeName = ref('1');
|
|
|
+const fileLists = ref([]);
|
|
|
const showModal = ref(false);
|
|
|
const { size, fileList, upload, removeFile, previewFile, file, accept } =
|
|
|
useUpload({
|
|
@@ -213,6 +214,7 @@ async function handleItems(type, item) {
|
|
|
function handleSuccess(item) {
|
|
|
let uploadId = item?.data.id;
|
|
|
addByMediaLiBrary({ caseId: caseId.value, filesTypeId: klblId.value, uploadId }).then((res) => {
|
|
|
+ fileLists.value = []
|
|
|
getList();
|
|
|
});
|
|
|
}
|