From be75778018546945dd618c66f55884b02451d22a Mon Sep 17 00:00:00 2001 From: lixuefeng <1126141216@qq.com> Date: Fri, 23 Jan 2026 00:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=9A=E5=BC=80=E5=8F=91?= =?UTF-8?q?=20=E6=8F=8F=E8=BF=B0=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +}