mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-30 21:13:02 +08:00
修复经验百分比小数点的问题
This commit is contained in:
parent
010353f0bb
commit
9872a08968
@ -41,7 +41,7 @@
|
|||||||
:value="userInfo.process"
|
:value="userInfo.process"
|
||||||
><q-tooltip
|
><q-tooltip
|
||||||
>当前经验 {{ userInfo.exp }} <br />距离下一级还剩
|
>当前经验 {{ userInfo.exp }} <br />距离下一级还剩
|
||||||
{{ (1 - userInfo.process) * 100 }}%</q-tooltip
|
{{ 100 - userInfo.process * 100 }}%</q-tooltip
|
||||||
></q-linear-progress
|
></q-linear-progress
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@ -118,7 +118,7 @@ export default {
|
|||||||
(
|
(
|
||||||
(this.userInfo.exp - currentLevelDetail.minExp) /
|
(this.userInfo.exp - currentLevelDetail.minExp) /
|
||||||
currentLevelDetail.upExp
|
currentLevelDetail.upExp
|
||||||
).toFixed(1)
|
).toFixed(2)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user