From 9ac5410d06a0017ccf38dbc95d166c8995c3734e Mon Sep 17 00:00:00 2001 From: JustSong Date: Fri, 23 Jun 2023 21:42:31 +0800 Subject: [PATCH] feat: show used quota in token table --- web/src/components/TokensTable.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/src/components/TokensTable.js b/web/src/components/TokensTable.js index 0a1c1387..54f4ef8c 100644 --- a/web/src/components/TokensTable.js +++ b/web/src/components/TokensTable.js @@ -181,13 +181,21 @@ const TokensTable = () => { > 状态 + { + sortToken('used_quota'); + }} + > + 已用额度 + { sortToken('remain_quota'); }} > - 额度 + 剩余额度 { {token.name ? token.name : '无'} {renderStatus(token.status)} + {renderQuota(token.used_quota)} {token.unlimited_quota ? '无限制' : renderQuota(token.remain_quota, 2)} {renderTimestamp(token.created_time)} {token.expired_time === -1 ? '永不过期' : renderTimestamp(token.expired_time)}