修改头像

This commit is contained in:
dong_bo0602 2021-05-18 17:57:52 +08:00
parent 8a28894dc9
commit 5a7a0f3fc8
2 changed files with 4 additions and 3 deletions

BIN
src/assets/images/add.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

View File

@ -993,9 +993,9 @@
<td>头像</td>
<td>
<input type="file" id="upload-avatar" @change="uploadAvatar($event)">
<label for="upload-avatar" v-if="!personInfo.userPhotoId">点击上传</label>
<label for="upload-avatar" v-else>
<img :src="personUrl + 'route/file/download/true/' + personInfo.userPhotoId" alt="" style="max-width: 150px">
<img :src="personUrl + 'route/file/download/true/' + personInfo.userPhotoId" alt="" style="width: 150px;height:150px;margin-right: 10px">
<label for="upload-avatar" title="点击上传">
<img src="@/assets/images/add.png" alt="">
</label>
</td>
</tr>
@ -1741,6 +1741,7 @@ export default {
token: self.token
}
}).then(function (res) {
console.log(res.data)
self.$layer.msg('上传成功')
self.isLaoding = false
self.personInfo.userPhotoId = res.data.data