Browse Source

修改绘制问题

haojianlong 4 years ago
parent
commit
2c14973c94
1 changed files with 3 additions and 1 deletions
  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.lineType = this.ruleForm.LineDash
             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}`
                 this.view.url = url
+            } else {
+                this.view.url = ''
             }
         },
         initGraph() {