zhangzengfei
2020-09-17 d4cd7df0bd1484c31e37bcb0642e89ecdcf7ab29
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;