1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-10 11:59:28 +08:00

fix: 修复瞬间内容中的图片视频无法展示问题

This commit is contained in:
小莫唐尼
2025-06-25 18:33:44 +08:00
parent 67fc682164
commit bc541a3ef6
+3 -3
View File
@@ -251,9 +251,9 @@ export default {
const regex = /<a\s+(?:[^>]*?\s+)?class=(['"])[^'"]*?\btag\b[^'"]*?\1[^>]*?>.*?<\/a>/gi;
const newHtml = htmlString.replace(regex, '');
return newHtml
.replace(/<[^>]+>\s*<\/[^>]+>/g, '')
.replace(/\s+/g, ' ')
.trim();
// .replace(/<[^>]+>\s*<\/[^>]+>/g, '')
// .replace(/\s+/g, ' ')
// .trim();
},
randomTagColor() {
if (!this.calcUseTagRandomColor) return "blue";