diff --git a/front/src/api/videoSurveillance.js b/front/src/api/videoSurveillance.js index 94198d54..ddd9d6e7 100644 --- a/front/src/api/videoSurveillance.js +++ b/front/src/api/videoSurveillance.js @@ -68,7 +68,7 @@ export function selectByChannelCode(params) { } export function getStreamByChannelCode(params) { return request({ - url: `/api/project/file`, + url: `/resource/hls/getHls`, method: 'get', params, }) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index eec677d2..ca1a3f45 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -234,7 +234,7 @@ const openVideo = (id) => { console.log('打开视频', id) const param = { - channelCode: id, + key: id, } getStreamByChannelCode(param).then((res) => { console.log(res)