mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 15:19:25 +00:00
perf: console dashboard api
This commit is contained in:
@@ -66,7 +66,16 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getResourcesCount() {
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user