安装:npm i mpvue-wxparse
js:import wxparse from "mpvue-wxparse";
css:@import url('~mpvue-wxparse/src/wxParse.css');
htm:<wxparse :content="detail" @preview="preview" @navigate="navigate"/>
在method中添加方法
preview(src, e) {
// do something
},
navigate(href, e) {
// do something
}