Commit 969d5897 by 杨明

fixed

1 parent b22ebbc0
...@@ -198,7 +198,10 @@ export default { ...@@ -198,7 +198,10 @@ export default {
} }
} }
this.$set(item, 'htmlText', html.replace(/<p>/, '<p style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;word-break: break-all;-webkit-box-orient: vertical;">')) this.$set(item, 'htmlText', html.replace(/<p>/, '<p style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;word-break: break-all;-webkit-box-orient: vertical;">'))
html = html.replace(/<p><\/p>/g, '').replace(/<p>([\s\S]+?)<\/p>/g, '\n$1') html = html
.replace(/<p><\/p>/g, '')
.replace(/<p>([\s\S]+?)<\/p>/g, '\n$1')
.replace(/<[^>]+>/g, '')
if (materialUrl) { if (materialUrl) {
this.$set(item, 'materialContent', { materialUrl, imgCount, urlType, imgSrc, videoSrc, html }) this.$set(item, 'materialContent', { materialUrl, imgCount, urlType, imgSrc, videoSrc, html })
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!