x6-vue-shape 本地能预览,服务器上无法预览?

新手上路,请多包涵

image.png
都是静态数据,本地预览没啥问题。

到了线上就成这样了
image.png

node节点没加载出来,控制爱也不报错,版本也没冲突,插件看起来能跑,毕竟渲染出来了一部分。

show() {
          console.log(dataJson,'this.dataJson = dataJson1')
          this.showTimer && clearTimeout(this.showTimer)
          this.showTimer = setTimeout(() => {
             this.dataJson = dataJson
             console.log(this.dataJson,'this.dataJson = dataJson')
             this.visible1 = false
             // 初始化 graph
             this.initGraph()
             // 按钮绑定
             // this.keyBindFn()
             // 执行
             this.startFn() 
             clearTimeout(this.showTimer)
          }, 500)
      },
Graph.registerNode(
        'dag-condition',
        {
          inherit: 'vue-shape',
          width: 180,
          height: 36,
          component: {
            template: `<condition />`,
            components: {
              condition
            }
          },
          ports: {
            groups: {
              top: {
                position: 'top',
                attrs:
                {
                  circle: {
                    r: 4,
                    magnet: true,
                    stroke:
                    '#C2C8D5',
                    strokeWidth: 1,
                    fill: '#fff'
                  }
                }
              },
              bottom: {
                position: 'bottom',
                attrs: {
                  circle: {
                    r: 4,
                    magnet:
                    true,
                    stroke: '#C2C8D5',
                    strokeWidth: 1,
                    fill: '#fff'
                  }
                }
              }
            }
          },
          children: {
            groups: {
                
            }
          }
        },
        true
        )
阅读 1.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题