src/view/home/service.js
@@ -26,4 +26,18 @@ // 获取预警排行统计前10 export const getCarInfoById = (data) => { return axios.get(`/system/car/getCarInfo/${data.id}`, data) } // 获取监控 export const getRealVideo = (data) => { return axios.get(`/system/car/getRealVideo/${data.id}`, data) } // 通知后端开始获取视频流 export const playDetection = (id) => { return axios.get(`/system/car/playDetection/${id}`) } // 通知后端开始关闭视频流 export const closeRealVideo = (id) => { return axios.get(`/system/car/closeRealVideo/${id}`) }