v-html中内容渲染到页面需要修改样式可以用正则表达式来修改。
GetSafeRemark(fireUnitId){
this.$http.get(this.$api.GetSafeRemark,{data:{fireUnitId}}).then(res=>{
console.log("获取的情况说明",res)
// this.details = res.data.result
//正则表达式来替换修改样式
this.details = res.data.result.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
})
}