code refactor

This commit is contained in:
MaysWind
2025-01-05 13:14:08 +08:00
parent a19cc81391
commit 061ea6aab4
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ const { style, getAccountIcon, getCategoryIcon } = useItemIcon(props);
const f7IconValue = computed<string>(() => {
if (props.iconType === 'fixed-f7') {
return props.iconId;
return props.iconId.toString();
} else {
return '';
}
@@ -25,7 +25,7 @@ const icon = computed<string>(() => {
} else if (props.iconType === 'category') {
return getCategoryIcon(props.iconId);
} else if (props.iconType === 'fixed') {
return props.iconId;
return props.iconId.toString();
} else {
return '';
}