Files
rustfs-console/composables/useSystem.ts
T
overtrue 6ab024be1c style: format code with Prettier
- Auto-format all files to comply with Prettier rules
- Fix code style issues in 545 files
2025-11-01 00:03:01 +08:00

29 lines
587 B
TypeScript

export const useSystem = () => {
const { $api } = useNuxtApp()
return {
// 获取服务器信息
async getSystemInfo() {
return await $api.get('/info')
},
// 存储信息
async getStorageInfo() {
return await $api.get('/storageinfo')
},
// 数据使用信息
async getDataUsageInfo() {
return await $api.get('/datausageinfo')
},
// 系统指标
async getSystemMetrics() {
return await $api.get('/metrics')
},
// 获取license
async getLicense() {
return await $api.get('/license')
},
}
}