修复前端金额展示并整理依赖
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user