mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-28 13:17:59 +08:00
fix: 存读档界面中进行数据格式化
This commit is contained in:
parent
783b7beacd
commit
45ba43ac8e
@ -76,7 +76,10 @@ export const SaveItem = defineComponent<SaveItemProps>(props => {
|
|||||||
if (!props.data) return '';
|
if (!props.data) return '';
|
||||||
else {
|
else {
|
||||||
const hero = props.data.data.hero;
|
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}`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user