总有一天你会明白,委屈要自己消化,故事不用逢人就讲。
结构:
*头像
:action="actionPath"
list-type="picture-card"
:on-remove="handleRemove"
:on-change="handleChange"
:data="postData"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
:file-list="photoList"
:class="{ hide: hideUpload }"
>
![]()
data:
actionPath: "https://upload.qiniup.com", //上传到服务器的路径
postData: { token:"生成的token" },
photoList: [],
headPortrait:[]//传给后端
触发的事件:
// 显示对应数据
lookList() {
const req = {id: this.$route.query.id};
gymnasiumLookVue(req).then(res => {
if (res.data.cod
|