问题:
解决问题:
重点是:加入action="#"和:http-request="uploadHttpRequest"
<el-upload
v-loading="isLoading"
ref="upload"
v-model="fileList"
:multiple="multiple"
action="#"
:limit="max"
:http-request="uploadHttpRequest"
accept="image/png, image/jpeg, image/gif,video/mp4,video/avi,video/mpeg,video/quicktime,video/webm,video/ogg,video/3gpp-tts,video/3gpp2-tts,"
:auto-upload="autoUpload"
:show-file-list="showFileList"
:drag="drag"
:on-exceed="handleExceed"
:before-upload="handleUpload"
>
所以只要加上 :http-request="uploadHttpRequest"就能自定义上传,然后调用上传接口,进行上传操作。