diff --git a/src/api/apps.ts b/src/api/apps.ts index 9755f07..b437b82 100644 --- a/src/api/apps.ts +++ b/src/api/apps.ts @@ -86,8 +86,8 @@ export function resumeApp(data: any) { } // 停止 -export function stopApp(data: any) { - return axios.post(`${runPrefix}/apps/${data.id}/stop`); +export function stopApp(appid: any) { + return axios.post(`${runPrefix}/apps/${appid}/stop`); } // APi发布 diff --git a/src/api/event.ts b/src/api/event.ts index 34db91a..a84104e 100644 --- a/src/api/event.ts +++ b/src/api/event.ts @@ -35,9 +35,13 @@ export function queryEventItem(name: string) { } // 事件管理-使用场景ID查询事件 -export function queryEventItemBySceneId(sceneId: string) { +export function queryEventItemBySceneIdOld(sceneId: string) { return axios.get(`${urlPrefix}/event/${sceneId}/get`); } +// 事件管理-使用场景ID查询事件新 +export function queryEventItemBySceneId(sceneId: string) { + return axios.get(`${urlPrefix}/event/${sceneId}/getTopic`); +} // 事件管理-获取工程下可用的topic export function getTopicList(id: string) {