From e7fc0ccab702239766b1172fef969d6a8592cb1a Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 18 Oct 2023 18:17:59 +0800 Subject: [PATCH] 1 --- .../shequzhili/videoWall/videoDialog.vue | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/views/modules/shequzhili/videoWall/videoDialog.vue b/src/views/modules/shequzhili/videoWall/videoDialog.vue index 7c89b35bc..b247f311f 100644 --- a/src/views/modules/shequzhili/videoWall/videoDialog.vue +++ b/src/views/modules/shequzhili/videoWall/videoDialog.vue @@ -16,10 +16,10 @@ token: "", videoSrc:"", userData:{ - "userName": "apizhsq", - "password": "12345678@df", - "type": 1 - } + "userName": "apizhsq", + "password": "12345678@df", + "type": 1 + } }; }, methods: { @@ -28,26 +28,22 @@ token: this.token, }; const iframe = this.$refs.myIframe; - console.log(message); iframe.contentWindow.postMessage(message, "*"); }, getAuthCameras(token){ var that=this; - this.$axios.post("http://172.20.41.195:9001/video/api/getAuthCameras",null,{ + this.$axios.post("http://172.20.41.195:9006/video/api/getAuthCameras",null,{ headers: { Authorization: token }}) .then((res) => { - console.log(res); - that.videoSrc="http://172.20.41.195:9025/video-play-plug?token="+that.token+"&playType=realPlay"+"&cameraCode="+res.data.data[0].code + that.videoSrc="http://172.20.41.195:9015/video-play-plug?token="+that.token+"&playType=realPlay"+"&cameraCode="+res.data.data[0].code }); }, - // getLogin(){ this.$axios - .post("http://172.20.41.195:9007/video/api/login",this.userData) + .post("http://172.20.41.195:9006/video/api/login",this.userData) .then((res) => { - console.log(token); this.token=res.data.data.token; this.getAuthCameras(res.data.data.token); });