<file-upload
class="btn btn-primary dropdown-toggle"
:headers="{"Content-Type":"multipart/form-data"}"
:post-action="postAction"
:extensions="extensions"
:accept="accept"
:multiple="multiple"
:directory="directory"
:data="{parentId:parentId}"
:size="size || 0"
:thread="thread < 1 ? 1 : (thread > 5 ? 5 : thread)"
:add-index="addIndex"
v-model="files"
@input-filter="inputFilter"
@input-file="inputFile"
ref="upload">
<i class="icon iconfont icon-shangchuan"></i>
</file-upload>
for the corresponding vue configuration, please see
below. accept: "*",
extensions: "*",
minSize: 1024,
size: 1024 * 1024 * 10,
multiple: true,
directory: false,
addIndex: false,
thread: 3,
name: "file",
postAction: "http://10.154.1.1:8080/api/v1/file/upload",
after clicking upload, no request was sent to the backend, and the reason has not been found.
ask all the bosses for guidance