zhangzengfei
2021-06-18 e3557e27465cacbad62321041fd2d17e4f81a196
修复数据栈底图显示,添加朔黄的支持
1个文件已修改
16 ■■■■■ 已修改文件
src/components/canvas/index.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/canvas/index.vue
@@ -102,11 +102,17 @@
  computed: {
    canvasBg() {
      if (this.snapshot_url) {
        if (this.sourceType == 2) {
          return `${this.snapshot_url}`
        } else {
          return `/httpImage/${this.snapshot_url}`
        // 数据栈自动上传处理
        if (this.snapshot_url.indexOf("/opt/vasystem") == 0) {
          return this.snapshot_url.replace("/opt/vasystem", "");
        }
        if (this.sourceType == 2) {
          return `${this.snapshot_url}`;
        } else {
          return `/httpImage/${this.snapshot_url}`;
        }
      } else {
        return this.blackImg;
      }
@@ -197,7 +203,7 @@
      this.$nextTick(() => {
        // this.$refs.bigCanvas.delCursor = {}
      })
    },
    cancelFunc() {
      this.visible = false;