fix: 存读档界面中进行数据格式化

This commit is contained in:
unanmed 2025-06-25 13:08:25 +08:00
parent 783b7beacd
commit 45ba43ac8e

View File

@ -76,7 +76,10 @@ export const SaveItem = defineComponent<SaveItemProps>(props => {
if (!props.data) return '';
else {
const hero = props.data.data.hero;
return `${hero.hp}/${hero.atk}/${hero.def}`;
const hp = core.formatBigNumber(hero.hp);
const atk = core.formatBigNumber(hero.atk);
const def = core.formatBigNumber(hero.def);
return `${hp}/${atk}/${def}`;
}
});