From a63a5193cc4519a15aa6cf98ce473ac4ee632664 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Fri, 2 Apr 2021 14:45:08 +0800 Subject: [PATCH] update Former-commit-id: 6792538eba47d830bbb214c06526b9625f46a631 Former-commit-id: 88d91e91df052fb9324fefd444d5fc9022e5aa0a --- projects/Platform/wwwroot/components/devices/camera.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Platform/wwwroot/components/devices/camera.vue b/projects/Platform/wwwroot/components/devices/camera.vue index ae9229bf..01effede 100644 --- a/projects/Platform/wwwroot/components/devices/camera.vue +++ b/projects/Platform/wwwroot/components/devices/camera.vue @@ -258,10 +258,10 @@ computed: { url: function () { if (this.isFlvSupported) { - return location.protocol + '//' + location.hostname + '/live/' + this.device.number + '.flv'; + return location.protocol + '//' + location.host + '/live/' + this.device.number + '.flv'; } else { - return location.protocol + '//' + location.hostname + '/live/' + this.device.number + '.m3u8'; + return location.protocol + '//' + location.host + '/live/' + this.device.number + '.m3u8'; } //return getDeviceDataValue(this.device, 'flv'); },