修复经验百分比小数点的问题

This commit is contained in:
fofolee 2022-04-19 18:13:03 +08:00
parent 010353f0bb
commit 9872a08968

View File

@ -41,7 +41,7 @@
:value="userInfo.process"
><q-tooltip
>当前经验 {{ userInfo.exp }} <br />距离下一级还剩
{{ (1 - userInfo.process) * 100 }}%</q-tooltip
{{ 100 - userInfo.process * 100 }}%</q-tooltip
></q-linear-progress
>
</div>
@ -118,7 +118,7 @@ export default {
(
(this.userInfo.exp - currentLevelDetail.minExp) /
currentLevelDetail.upExp
).toFixed(1)
).toFixed(2)
);
},
},