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);
|
||||
|
||||
Reference in New Issue
Block a user