diff --git a/src/api/clients.ts b/src/api/clients.ts index f8902ed..b10a7dc 100644 --- a/src/api/clients.ts +++ b/src/api/clients.ts @@ -27,3 +27,8 @@ export const saveClient = (data?: object) => { export const deleteClient = (id: string) => { return http.request("delete", baseUri("/client/" + id)); }; + +// 获取客户端链接状态列表 +export const getClientConnects = () => { + return http.request("get", baseUri("/client/status")); +}; diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 61c5f76..50fd83e 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,7 +1,8 @@ - + + + + + + + + + + + + + + diff --git a/src/views/server/server.vue b/src/views/server/server.vue index c98d443..4427803 100644 --- a/src/views/server/server.vue +++ b/src/views/server/server.vue @@ -144,10 +144,10 @@ getGlobalSettingApi(); /> - + - + @@ -177,7 +177,13 @@ getGlobalSettingApi(); - 获取IP + 获取IP