1.upload组件
<el-upload
class="avatar-uploader"
ref="uploadRef"
action="server/fsm/file/upload"
:auto-upload="true"
:show-file-list="false"
:on-success="addSuccess"
:on-error="upError"
:headers="uploadData"//携带token
:data="ZOO"//携带参数
>
2.data中
ZOO:{
authorization:0 //携带参数,是否公开
},
uploadData:{
token: window.sessionStorage.getItem('token')//携带token
},