diff --git a/src/api/home.js b/src/api/home.js index 0d6174d..1747058 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -50,6 +50,9 @@ export function getRegionsListApi(data){ // 获取视频播放地址 export function getPreviewUrlApi(data) { + if(data.cameraIndexCode==undefined || !data.cameraIndexCode){ + return null; + } return request({ url: '/fjtcc-api/api/largeScreen/video/getPreviewUrl', method: 'post', @@ -139,4 +142,4 @@ export function getSpotVisitor(data) { method: 'get', data }) -} \ No newline at end of file +}