This commit is contained in:
wangting 2024-08-20 17:35:36 +08:00
parent 7fc75735b5
commit 487233462f
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@
getData(id){
this.$http.post(`/door/getArt/${id}`).then(res=>{
this.datObj = res.data.data
this.datObj.content = this.datObj.content.replace(/<img/g,'<img style="width:95%; height: auto;margin:0 auto"')
this.datObj.content = this.datObj.content&&this.datObj.content.replace(/<img/g,'<img style="width:95%; height: auto;margin:0 auto"')
if(this.datObj.category.parentName=="寻红·红巡"){
this.menu = this.searchMenu
}else if(this.datObj.category.parentName=="旅游服务"){

View File

@ -90,7 +90,7 @@
//
this.$http.post(`/door/getArt/9302`).then(res=>{
this.leaders = res.data.data
this.leaders.content = this.leaders.content.replace(/<img/g,'<img style="width:95%; height: auto;margin:0 auto"')
// this.leaders.content = this.leaders.content.replace(/<img/g,'<img style="width:95%; height: auto;margin:0 auto"')
})
//
this.$http.post(`/door/getArt/9305`).then(res=>{