From 69a08cd6976062809edfeca65e170b6b94ed67b0 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 29 Dec 2022 16:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E7=BC=96=E8=BE=91=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/Setting.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/user/Setting.vue b/src/views/user/Setting.vue index c96874d9..94324804 100644 --- a/src/views/user/Setting.vue +++ b/src/views/user/Setting.vue @@ -408,13 +408,13 @@ apiBoeTeahcer.simpleInfo(this.userInfo.sysId).then(sinfo=>{ if(sinfo.status=='200'){ - if(sinfo.result.courses){ + if(!this.teachform.courses){ this.teachform.courses = sinfo.result.courses; } - if(sinfo.result.work){ + if(!this.teachform.workExperience){ this.teachform.workExperience = sinfo.result.work; } - if(sinfo.result.photo){ + if(!this.teachform.photo){ this.teachform.photo = sinfo.result.photo; this.tearchUrl = this.fileBaseUrl + sinfo.result.photo; } @@ -552,6 +552,8 @@ } }) + }else{ + this.$message.error(res.message); } })