wangliang_wd

feat:增加相册选择逻辑

@@ -99,7 +99,7 @@ struct EditUserInfoPage { @@ -99,7 +99,7 @@ struct EditUserInfoPage {
99 pickerSelect(index:number){ 99 pickerSelect(index:number){
100 if (index === 0) { 100 if (index === 0) {
101 photoPickerUtils.getPhotoPicker(1).then(value => { 101 photoPickerUtils.getPhotoPicker(1).then(value => {
102 - if (value) { 102 + if (value['photoUris'].length > 0) {
103 this.headerImg = value['photoUris'][0] 103 this.headerImg = value['photoUris'][0]
104 } 104 }
105 }) 105 })