This commit is contained in:
skjia 2025-06-16 09:01:36 +08:00
parent a978642ef3
commit 8aefe7371b
2 changed files with 5 additions and 4 deletions

View File

@ -357,10 +357,10 @@ export default {
this.fileList=[] this.fileList=[]
this.checkUrlList=[] this.checkUrlList=[]
} }
if(this.form.chronicIds.length>0){ if(this.form.chronicIds!=null&&this.form.chronicIds.length>0){
this.form.chronicIdList=this.form.chronicIds.split(","); this.form.chronicIdList=this.form.chronicIds.split(",");
} }
console.log("this.form",this.form); console.log("this.form.articleContent",this.form.articleContent);
this.open = true; this.open = true;
this.title = "修改"; this.title = "修改";
}, },
@ -373,7 +373,8 @@ export default {
}else{ }else{
this.form.chronicIds = "" this.form.chronicIds = ""
} }
this.form.coverPhoto = this.checkUrlList[0] this.form.coverPhoto = this.checkUrlList[0];
console.log("this.form.articleContent",this.form.articleContent);
if (this.form.articleId != undefined) { if (this.form.articleId != undefined) {
editHealthScienceApi(this.form).then(response => { editHealthScienceApi(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");