From 48cab7b00fc4639fe8c9a5f441cdba5d8cb730c6 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Thu, 21 Sep 2023 16:47:15 +0800
Subject: [PATCH] 修改cesium的图层地址 http=>https

---
 src/api/manage.ts |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/api/manage.ts b/src/api/manage.ts
index 654b988..3f7b883 100644
--- a/src/api/manage.ts
+++ b/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
 }
 
@@ -131,8 +131,6 @@
 }
 
 export const getUserPage = async function (params: any, body: IPage): Promise<CommonListResponse<any>> {
-  console.log(params, '++++++++++++++')
-
   const url = `${HTTP_PREFIX}/user/page`
   const result = await request.get(url, { params: { ...params, pageNum: body.current, pageSize: body.size } })
   return result.data

--
Gitblit v1.9.3