src/api/manage.ts
@@ -91,9 +91,9 @@ } // 获取在线设备信息 export const getDeviceTopo = async function (params:any): Promise<IWorkspaceResponse<any>> { const url = `${HTTP_PREFIX_MANAGE}/manage/device` const result = await request.get(url, { params }) export const getDeviceTopo = async function (workspace_id: string): Promise<IWorkspaceResponse<any>> { const url = `${HTTP_PREFIX}/devices/${workspace_id}/devices` const result = await request.get(url) return result.data }