feat: Api key sorted by time

This commit is contained in:
zhangzhanwei 2025-07-16 15:01:24 +08:00 committed by zhanweizhang7
parent dd3e671b50
commit d643e7e683
2 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,7 @@ const open = () => {
function getApiKeyList() {
systemKeyApi.getAPIKey().then((res) => {
res.data.sort((x:any,y:any)=>x.name < y.name ? 1 : -1)
apiKey.value = res.data
})
}

View File

@ -140,6 +140,7 @@ const open = () => {
function getApiKeyList() {
applicationKeyApi.getAPIKey(id as string, loading).then((res) => {
res.data.sort((x:any,y:any)=>x.name < y.name ? 1 : -1)
apiKey.value = res.data
})
}