Skip to content

Commit 77bf7a8

Browse files
authored
Merge pull request #2391 from WXLKaylee/fix/vue-node-registry-1.1.13-build
fix: @logicflow/vue-node-registry 1.1.13版本打包没有js
2 parents fd6590a + 0dfdfff commit 77bf7a8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • packages/vue-node-registry/src

packages/vue-node-registry/src/view.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,19 @@ export class VueNodeView extends HtmlNode {
8888

8989
if (root) {
9090
const nodeConfig = getVueNodeConfig(model.type, graphModel)
91+
const flowId = this.props.graphModel.flowId
9192
if (!nodeConfig) {
9293
// No registered config for this node type; ensure any existing Teleport mount is cleaned up
93-
if (isVue3 && isActive()) {
94-
disconnect(this.targetId())
94+
if (isVue3 && isActive() && flowId) {
95+
disconnect(this.targetId(), flowId)
9596
}
9697
return
9798
}
9899
const { component } = nodeConfig
99100
if (!component) {
100101
// Config exists but has no component; also clean up any existing Teleport mount
101-
if (isVue3 && isActive()) {
102-
disconnect(this.targetId())
102+
if (isVue3 && isActive() && flowId) {
103+
disconnect(this.targetId(), flowId)
103104
}
104105
return
105106
}

0 commit comments

Comments
 (0)