瀏覽代碼

修改绘制问题

haojianlong 4 年之前
父節點
當前提交
2c14973c94
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/legendLibrary/addForm.vue

+ 3 - 1
src/views/legendLibrary/addForm.vue

@@ -303,9 +303,11 @@ export default {
             this.view.strokecolor = this.ruleForm.Color
             this.view.strokecolor = this.ruleForm.Color
             this.view.lineType = this.ruleForm.LineDash
             this.view.lineType = this.ruleForm.LineDash
             this.view.lineWidth = this.ruleForm.LineWidth
             this.view.lineWidth = this.ruleForm.LineWidth
-            if (this.ruleForm.Url) {
+            if (this.ruleForm.Url && type == 2) {
                 let url = `/serve/topology-wanda/Picture/query/${this.ruleForm.Url}`
                 let url = `/serve/topology-wanda/Picture/query/${this.ruleForm.Url}`
                 this.view.url = url
                 this.view.url = url
+            } else {
+                this.view.url = ''
             }
             }
         },
         },
         initGraph() {
         initGraph() {