修复两个小bug:

1. 清空画布时未清空组件引用,导致组件重名判断出错;
2. 库模式打包后无法通过CDN的方式引入使用。
This commit is contained in:
vdpAdmin
2022-11-24 14:40:19 +08:00
parent 5f561c3782
commit b2dd6d6054
4 changed files with 9 additions and 0 deletions

View File

@ -173,6 +173,12 @@
return this.getWidgetRef(wName)
},
clearWidgetRefList() {
Object.keys(this.widgetRefList).forEach(key => {
delete this.widgetRefList[key]
})
},
}
}
</script>

View File

@ -298,6 +298,7 @@
clearDesigner() {
this.$refs.toolbarRef.clearFormWidget()
this.$refs.formRef.clearWidgetRefList()
},