Tang 4 years ago
parent
commit
bab904a97c
2 changed files with 4 additions and 2 deletions
  1. 3 0
      components/home.vue
  2. 1 2
      pages2/wd/avatar.vue

+ 3 - 0
components/home.vue

@@ -358,6 +358,9 @@ export default {
 			});
 		},
 		initList() {
+			this.list1 = []
+			this.list2 = []
+			this.list3 = []
 			this.courseList();
 			this.bankList();
 			this.noteList();

+ 1 - 2
pages2/wd/avatar.vue

@@ -140,7 +140,7 @@
 				this.submit()
 			},
 			async submit(){
-				if(this.avatarUrl!=this.userInfo.avatar){
+				if(this.avatarUrl!=this.$method.splitImgHost(this.userInfo.avatar)){
 					const waitYS = await this.imageInfos();
 				}
 				this.updateInfo()
@@ -157,7 +157,6 @@
 				    count: 1, //默认9
 				    sizeType: [ 'compressed'], //可以指定是原图还是压缩图,默认二者都有
 				    success: function (res) {
-						console.log(that.avatarUrl,999)
 						that.avatarUrl = res.tempFilePaths[0]
 				    }
 				});