feat: add comments to clarify token usage and top questions data structure

v3.2
wxg0103 2025-11-13 15:13:19 +08:00
parent 40c327d49a
commit 93770b7ed0
1 changed files with 2 additions and 0 deletions

View File

@ -362,11 +362,13 @@ function getAppStatistics() {
loadSharedApi({type: 'application', systemType: apiType.value})
.getTokenUsage(id, daterange.value, statisticsLoading)
.then((res: any) => {
// [{'token_usage': 200, 'username': ''}, ...]
tokenUsage.value = res.data
})
loadSharedApi({type: 'application', systemType: apiType.value})
.topQuestions(id, daterange.value, statisticsLoading)
.then((res: any) => {
// [{'chat_record_count': 200, 'username': ''}, ...]
topQuestions.value = res.data
})
}