mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-01 07:24:30 +08:00
fix: 存读档界面中进行数据格式化
This commit is contained in:
1 parent
783b7beacd
commit
45ba43ac8e
1 file changed
+4
-1
@@ -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}`;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user