Explorar o código

弹窗组件内,图例,上送参数categoryId修改

yx %!s(int64=4) %!d(string=hai) anos
pai
achega
114277e57b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/components/Legend/src/legend.vue

+ 2 - 2
src/components/Legend/src/legend.vue

@@ -350,7 +350,7 @@ export default {
             let categoryId = this.categoryId || this.$cookie.get('categoryId')
             // console.log('queryView', this.innerLeng, categoryId)
             let data = {
-                categoryId: this.$cookie.get('categoryId'),
+                categoryId,
                 graphId: this.$cookie.get('graphId'),
                 projectId: this.$store.state.plazaId,
                 flag: flag,
@@ -398,7 +398,7 @@ export default {
             let categoryId = this.categoryId || this.$cookie.get('categoryId')
             // console.log('queryEditNum', categoryId)
             let data = {
-                categoryId: this.$cookie.get('categoryId'),
+                categoryId,
                 graphId: this.$cookie.get('graphId'),
                 projectId: this.$store.state.plazaId,
                 flag: flag,