From 6a5962fe9544005dba620b00fb36c25fe2da4e76 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期二, 16 十一月 2021 15:24:46 +0800 Subject: [PATCH] 后端没修改的情况下添加默认背景图 --- src/api/scene.ts | 45 +++++++++++++++++++++++---------------------- 1 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/api/scene.ts b/src/api/scene.ts index ca76cd8..130433f 100644 --- a/src/api/scene.ts +++ b/src/api/scene.ts @@ -1,27 +1,27 @@ import request from "@/scripts/httpRequest"; -export const getAllTemplate = (query: any) => { - return request({ - url: "/data/api-v/template/rule", - method: "get", - params: query - }); -}; +// export const getAllTemplate = (query: any) => { +// return request({ +// url: "/data/api-v/template/rule", +// method: "get", +// params: query +// }); +// }; -export const deleteTemplate = (id: string) => { - return request({ - url: "/data/api-v/template/rule/" + id, - method: "delete" - }); -}; +// export const deleteTemplate = (id: string) => { +// return request({ +// url: "/data/api-v/template/rule/" + id, +// method: "delete" +// }); +// }; -export const saveTemplate = (params: any) => { - return request({ - url: "/data/api-v/template/rule/save", - method: "post", - data: params - }); -}; +// export const saveTemplate = (params: any) => { +// return request({ +// url: "/data/api-v/template/rule/save", +// method: "post", +// data: params +// }); +// }; export const saveCameraScene = (params: any) => { return request({ @@ -57,7 +57,8 @@ export const deleteCameraScene = (id: any) => { return request({ - url: "/data/api-v/camera/rule/deleteGroup/" + id, - method: "delete" + url: "/data/api-v/camera/rule/deleteGroup", + method: "get", + params: { groupId: id } }); }; -- Gitblit v1.8.0