修复前端金额展示并整理依赖

This commit is contained in:
yml
2026-06-09 20:32:17 +08:00
parent 4c2199df58
commit 684e30862d
20 changed files with 129 additions and 194 deletions
@@ -88,7 +88,10 @@ function getCategoryLabel(category: string) {
}
function previewText(content: string) {
const text = content.replace(/[#>*_`[\]()!-]/g, '').replace(/\s+/g, ' ').trim()
const text = content
.replace(/[#>*_`[\]()!-]/g, '')
.replace(/\s+/g, ' ')
.trim()
return text.length > 76 ? `${text.slice(0, 76)}...` : text
}
</script>