fix
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 3m13s
Docker Build & Deploy / Deploy to Production (push) Successful in 8s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s

This commit is contained in:
SunCheng
2026-02-19 11:04:05 +08:00
parent 6ca00c1478
commit 3402ffaae2
9 changed files with 233 additions and 34 deletions

View File

@@ -445,7 +445,7 @@ const getIconByClassify = (classify) => {
if (categoryIconMap.value[classify]) {
return categoryIconMap.value[classify]
}
// 降级:使用本地映射(向后兼容)
const iconMap = {
餐饮: 'food-o',
@@ -648,7 +648,7 @@ const loadCategories = async () => {
const response = await getCategoryList()
if (response && response.success) {
categories.value = response.data || []
// 构建分类名称 -> 图标的映射
const iconMap = {}
categories.value.forEach(category => {
@@ -668,7 +668,7 @@ const loadCategories = async () => {
onMounted(() => {
// 加载分类列表(用于图标映射)
loadCategories()
if (props.dataSource === 'api') {
fetchTransactions()
}