修改头像
This commit is contained in:
parent
8a28894dc9
commit
5a7a0f3fc8
BIN
src/assets/images/add.png
Normal file
BIN
src/assets/images/add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 333 B |
@ -993,9 +993,9 @@
|
|||||||
<td>头像</td>
|
<td>头像</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="file" id="upload-avatar" @change="uploadAvatar($event)">
|
<input type="file" id="upload-avatar" @change="uploadAvatar($event)">
|
||||||
<label for="upload-avatar" v-if="!personInfo.userPhotoId">点击上传</label>
|
<img :src="personUrl + 'route/file/download/true/' + personInfo.userPhotoId" alt="" style="width: 150px;height:150px;margin-right: 10px">
|
||||||
<label for="upload-avatar" v-else>
|
<label for="upload-avatar" title="点击上传">
|
||||||
<img :src="personUrl + 'route/file/download/true/' + personInfo.userPhotoId" alt="" style="max-width: 150px">
|
<img src="@/assets/images/add.png" alt="">
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -1741,6 +1741,7 @@ export default {
|
|||||||
token: self.token
|
token: self.token
|
||||||
}
|
}
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
|
console.log(res.data)
|
||||||
self.$layer.msg('上传成功')
|
self.$layer.msg('上传成功')
|
||||||
self.isLaoding = false
|
self.isLaoding = false
|
||||||
self.personInfo.userPhotoId = res.data.data
|
self.personInfo.userPhotoId = res.data.data
|
||||||
|
Loading…
Reference in New Issue
Block a user