fixing bug
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user