|
@@ -54,6 +54,7 @@ const handleSuccess = (response: any, file: any) => {
|
|
|
|
|
|
|
|
const clearData = () => {
|
|
const clearData = () => {
|
|
|
uploadFileList.value = []
|
|
uploadFileList.value = []
|
|
|
|
|
+ uploadRef.value.clearFiles()
|
|
|
}
|
|
}
|
|
|
const beforeAvatarUpload = (rawFile: any) => {
|
|
const beforeAvatarUpload = (rawFile: any) => {
|
|
|
if (
|
|
if (
|
|
@@ -89,6 +90,7 @@ const beforeAvatarUpload = (rawFile: any) => {
|
|
|
<el-upload
|
|
<el-upload
|
|
|
class="upload-demo"
|
|
class="upload-demo"
|
|
|
ref="uploadRef"
|
|
ref="uploadRef"
|
|
|
|
|
+ :auto-upload="false"
|
|
|
drag
|
|
drag
|
|
|
:accept="'application/pdf,.docx,.xlsx'"
|
|
:accept="'application/pdf,.docx,.xlsx'"
|
|
|
:show-file-list="false"
|
|
:show-file-list="false"
|