mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 16:16:39 +08:00
管理页面排序
This commit is contained in:
parent
fdbdfb37f1
commit
e1306cd248
@ -246,7 +246,12 @@ function UsersTable({ users, setUsers, loading }: UserInterface) {
|
||||
dataIndex: "everyLimitToken",
|
||||
width: 60,
|
||||
align: "right",
|
||||
sorter: (a, b) => a.everyLimitToken - b.everyLimitToken,
|
||||
sorter: (a, b) => {
|
||||
if (a.everyLimitToken !== null && b.everyLimitToken !== null) {
|
||||
return a.everyLimitToken - b.everyLimitToken;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
sortDirections: ["descend"],
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user