From d4cd7df0bd1484c31e37bcb0642e89ecdcf7ab29 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期四, 17 九月 2020 10:55:22 +0800 Subject: [PATCH] 处理外网端口映射无法跳转的问题 --- src/components/canvas/index.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/canvas/index.vue b/src/components/canvas/index.vue index ba2e0d7..ea4715e 100644 --- a/src/components/canvas/index.vue +++ b/src/components/canvas/index.vue @@ -89,7 +89,7 @@ }, data() { return { - blackImg: require("../../assets/baseimg.png"), + blackImg: require("../../assets/img/baseimg.png"), canvasData: { line: [], rect: [], @@ -103,7 +103,7 @@ ctx: null, visible: false, baseImg: undefined, - showProportion: 1.71 + showProportion: 1.666 }; }, watch: { @@ -148,7 +148,7 @@ .then(res => { if (res.data.cameraId === this.currentCameraId) { this.baseImg = res.data.snapshotUrl; - this.$emit('refresh',res.data.snapshotUrl) + this.$emit('refresh', res.data.snapshotUrl) this.$forceUpdate() this.$notify({ type: "success", @@ -473,6 +473,11 @@ }; </script> <style lang="scss" scoped> +canvas{ + position: absolute; + top: 0; + left: 0; +} .s-cavas { width: 576px; height: 324px; -- Gitblit v1.8.0