完善uniapp

This commit is contained in:
hero920103 committed 2026-07-16 00:35:50 +08:00
1 parent 61a937f7a3
commit 834c088aa2
29 files changed
+4444 -305

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ function clearSearch() {
}
function preview(content) {
const text = (content || '').replace(/\s+/g, ' ').trim()
const text = (content || '').replace(/<[^>]+>/g, '').replace(/&nbsp;/g, ' ').replace(/\s+/g, ' ').trim()
if (!text) return '暂无内容'
return text.length > 60 ? `${text.slice(0, 60)}...` : text
}