fixing bug

This commit is contained in:
2020-08-20 17:39:30 +08:00
parent 40e4d10bd7
commit d69486d1ab
5 changed files with 12 additions and 39 deletions

View File

@@ -136,7 +136,7 @@ export default {
sizeType: ['original', 'compressed'],
sourceType: ['album'],
success: (res) => {
this.avatar = res.tempFilePaths[0];
// this.avatar = res.tempFilePaths[0];
common.uploadFile({
url: url,
name: 'avatar',
@@ -144,7 +144,7 @@ export default {
}).then(result => {
// console.log(result);
// this.$set(this, 'avatar', result.file_path);
// this.avatar = result.file_path;
this.avatar = result.file_path + "?" + new Date().getTime();
this.uploadPath = result.file_name;
}, error => {
this.$u.toast(error);

View File

@@ -1,7 +1,7 @@
<template>
<view class="information">
<view class="info-avatar">
<u-avatar :src="userInfo.member_avatar + '?' + new Date().getTime()" :size="120"></u-avatar>
<u-avatar :src="userInfo.member_avatar" :size="120"></u-avatar>
</view>
<view class="info-item">
<view class="title">昵称</view>