Skip to content

Commit

Permalink
fix: 修复token展示错误
Browse files Browse the repository at this point in the history
  • Loading branch information
79E committed May 29, 2023
1 parent fe199c2 commit 17eda7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/admin/token/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ function TokenPage() {
render: (_, data) => {
return (
<div>
<p>总额度:{data.limit}</p>
<p>已使用:{data.usage / 100}</p>
<p>还剩余:{data.limit - (data.usage / 100)}</p>
<p>总额度:{data.limit.toFixed(2)}</p>
<p>已使用:{data.usage}</p>
<p>还剩余:{(data.limit - data.usage).toFixed(2)}</p>
</div>
)
}
Expand Down

0 comments on commit 17eda7e

Please sign in to comment.