feat: add comments to clarify token usage and top questions data structure
parent
40c327d49a
commit
93770b7ed0
|
|
@ -362,11 +362,13 @@ function getAppStatistics() {
|
||||||
loadSharedApi({type: 'application', systemType: apiType.value})
|
loadSharedApi({type: 'application', systemType: apiType.value})
|
||||||
.getTokenUsage(id, daterange.value, statisticsLoading)
|
.getTokenUsage(id, daterange.value, statisticsLoading)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
|
// [{'token_usage': 200, 'username': '张三'}, ...]
|
||||||
tokenUsage.value = res.data
|
tokenUsage.value = res.data
|
||||||
})
|
})
|
||||||
loadSharedApi({type: 'application', systemType: apiType.value})
|
loadSharedApi({type: 'application', systemType: apiType.value})
|
||||||
.topQuestions(id, daterange.value, statisticsLoading)
|
.topQuestions(id, daterange.value, statisticsLoading)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
|
// [{'chat_record_count': 200, 'username': '张三'}, ...]
|
||||||
topQuestions.value = res.data
|
topQuestions.value = res.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue