1
0
鏡像自 https://github.com/ialley-workshop-open/uni-halo.git 已同步 2026-06-12 13:19:31 +08:00

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

此提交包含在:
小莫唐尼
2025-06-25 18:33:44 +08:00
父節點 67fc682164
當前提交 bc541a3ef6
+3 -3
查看文件
@@ -251,9 +251,9 @@ export default {
const regex = /<a\s+(?:[^>]*?\s+)?class=(['"])[^'"]*?\btag\b[^'"]*?\1[^>]*?>.*?<\/a>/gi; const regex = /<a\s+(?:[^>]*?\s+)?class=(['"])[^'"]*?\btag\b[^'"]*?\1[^>]*?>.*?<\/a>/gi;
const newHtml = htmlString.replace(regex, ''); const newHtml = htmlString.replace(regex, '');
return newHtml return newHtml
.replace(/<[^>]+>\s*<\/[^>]+>/g, '') // .replace(/<[^>]+>\s*<\/[^>]+>/g, '')
.replace(/\s+/g, ' ') // .replace(/\s+/g, ' ')
.trim(); // .trim();
}, },
randomTagColor() { randomTagColor() {
if (!this.calcUseTagRandomColor) return "blue"; if (!this.calcUseTagRandomColor) return "blue";