This commit is contained in:
2024-07-02 14:46:49 +08:00
parent 1d1c92d01b
commit f24fdf5e43
3 changed files with 10 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
<view class="detail_title" v-if="detailInfo.title">{{
detailInfo.title
}}</view>
<slot name="richHeadImg"></slot>
<slot name="richHeadImg" @click="handleClickRichHeadImg"></slot>
<view class="rich_box" v-if="detailInfo.content">
<rich-text
:nodes="detailInfo.content | formatRichText"
@@ -45,7 +45,10 @@ export default {
},
computed: {
...mapState(['userInfo']),
}, filters: {
},
filters: {
/**
* 处理富文本里的图片宽度自适应
* 1.去掉img标签里的style、width、height属性