diff --git a/src/pages/setting/person/info.vue b/src/pages/setting/person/info.vue index 92c3795..6885946 100644 --- a/src/pages/setting/person/info.vue +++ b/src/pages/setting/person/info.vue @@ -424,7 +424,8 @@ export default { this.archivesList[index].cityName = this.archivesList[index].cityList[id-1].cityName }, getSchoolName(id,index){ - this.archivesList[index].schoolName = this.schoolList[id-1].schoolName + const school = this.schoolList.find(e => e.schoolId == id) + if (school) this.archivesList[index].schoolName = school.schoolName }, getSchoolData(){ this.$get(this.api.querySchool,{schoolName: '',provinceId: this.provinceId,cityId: this.cityId}).then(res => {