|
|
@@ -82,7 +82,8 @@
|
|
|
},
|
|
|
methods: {
|
|
|
chooseavatar(e) {
|
|
|
- this.userUpdate(e.detail.avatarUrl)
|
|
|
+ this.uploadingFile(e.detail.avatarUrl)
|
|
|
+ // this.userUpdate()
|
|
|
console.log(e);
|
|
|
},
|
|
|
commonApplet() {
|
|
|
@@ -126,7 +127,8 @@
|
|
|
}
|
|
|
},
|
|
|
uploadingFile(file) {
|
|
|
- upLoadingFileOss(file.path).then((res) => {
|
|
|
+ console.log(file,'------------------');
|
|
|
+ upLoadingFileOss(file).then((res) => {
|
|
|
if (res) {
|
|
|
this.userUpdate(res)
|
|
|
} else {
|