From e7a4df90906bb5eddbcb50fcb8bdd69d55129b29 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 10 Nov 2021 05:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E6=A1=A3?= =?UTF-8?q?=E6=A1=88schoolName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/setting/person/info.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 => {