src/view/home/service.js
@@ -27,3 +27,17 @@ 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}`) }