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

@ -30,7 +30,7 @@ export function editHealthScienceApi(data) {
url: '/smart-canteen/health_popular_article/edit',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
"merchant-id":"378915229716713472",
},
data: data
})

View File

@ -357,10 +357,10 @@ export default {
this.fileList=[]
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(",");
}
console.log("this.form",this.form);
console.log("this.form.articleContent",this.form.articleContent);
this.open = true;
this.title = "修改";
},
@ -373,7 +373,8 @@ export default {
}else{
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) {
editHealthScienceApi(this.form).then(response => {
this.$modal.msgSuccess("修改成功");