perf: console dashboard api

This commit is contained in:
feng
2024-05-21 15:20:57 +08:00
committed by 老广
parent 56f6c17275
commit d725e5497d

View File

@@ -66,7 +66,16 @@ export default {
},
methods: {
async getResourcesCount() {
return this.$axios.get('/api/v1/index/?total_count=1')
return this.$axios.get(
'/api/v1/index/',
{
params: {
total_count_online_sessions: 1,
total_count_online_users: 1,
total_count_today_failed_sessions: 1
}
}
)
}
}
}