Skip to content

Commit d643e7e

Browse files
committed
feat: Api key sorted by time
1 parent dd3e671 commit d643e7e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ui/src/layout/layout-header/avatar/APIKeyDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const open = () => {
151151
152152
function getApiKeyList() {
153153
systemKeyApi.getAPIKey().then((res) => {
154+
res.data.sort((x:any,y:any)=>x.name < y.name ? 1 : -1)
154155
apiKey.value = res.data
155156
})
156157
}

ui/src/views/application-overview/component/APIKeyDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const open = () => {
140140
141141
function getApiKeyList() {
142142
applicationKeyApi.getAPIKey(id as string, loading).then((res) => {
143+
res.data.sort((x:any,y:any)=>x.name < y.name ? 1 : -1)
143144
apiKey.value = res.data
144145
})
145146
}

0 commit comments

Comments
 (0)