|
@@ -1,7 +1,6 @@
|
|
|
<template>
|
|
|
<view class='app-container'>
|
|
|
- <rich-text :nodes="form.content" />
|
|
|
- <!-- <u-parse id="content" ref="content" :content="form.content" :endHandler="get" /> -->
|
|
|
+ <uv-parse :content="form.content" @linktap="linktap" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -27,17 +26,16 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // get(e) {
|
|
|
- // if (e.attr.class === 'ql-audio') {
|
|
|
- // e.attr.src = 'https://music-play.oss-cn-shenzhen.aliyuncs.com/backOss/file/a7e2c01610f64b49881556767f90ca63.mp3'
|
|
|
- // }
|
|
|
- // }
|
|
|
+ // 点击链接
|
|
|
+ linktap(e) {
|
|
|
+ window.location.href = e.href
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-p {
|
|
|
+.app-container{
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
</style>
|