From 296dd658fe5b45957523424720e851a9628159f9 Mon Sep 17 00:00:00 2001 From: jinna Date: Wed, 24 Jan 2024 17:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E5=BC=B9=E7=AA=97=E9=A1=B5=E9=9D=A2=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=B1=95=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/h5Player/player.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/views/components/h5Player/player.vue b/src/views/components/h5Player/player.vue index c94595a..ef644c1 100644 --- a/src/views/components/h5Player/player.vue +++ b/src/views/components/h5Player/player.vue @@ -240,14 +240,7 @@ export default { }); // _this.realplay(); console.log('length ===>',this.cameraList.length) - this.splitNum = - this.cameraList.length > 1 - ? 2 - : this.cameraList.length > 4 - ? 3 - : this.cameraList.length > 9 - ? 4 - : 2; + this.splitNum = (this.cameraList.length > 1 && this.cameraList.length <= 4) ? 2 : (this.cameraList.length > 4 && this.cameraList.length <= 9 ) ? 3 : this.cameraList.length > 9 ? 4 : 1; this.arrangeWindow() this.queryLive(); },