diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue
index cc96ee0a4c..25d91e2154 100644
--- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue
+++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue
@@ -202,9 +202,6 @@ const PointShadow = defineAsyncComponent(
)
const ContextMenu = defineAsyncComponent(() => import('./ContextMenu.vue'))
const MarkLine = defineAsyncComponent(() => import('./MarkLine.vue'))
-const UserViewEnlarge = defineAsyncComponent(
- () => import('@/components/visualization/UserViewEnlarge.vue')
-)
const LinkJumpSet = defineAsyncComponent(() => import('@/components/visualization/LinkJumpSet.vue'))
const LinkageSet = defineAsyncComponent(() => import('@/components/visualization/LinkageSet.vue'))
const DatasetParamsComponent = defineAsyncComponent(
@@ -1445,17 +1442,19 @@ const handleDragOver = e => {
const getMoveItem = () => {
return infoBox.value.moveItem
}
-
+const userViewEnlarge = ref()
const userViewEnlargeOpen = (opt, item) => {
- userViewEnlargeRefShow.value = true
- nextTick(() => {
- userViewEnlargeRef.value.dialogInit(
- canvasStyleData.value,
- canvasViewInfo.value[item.id],
- item,
- opt,
- { scale: curBaseScale.value }
- )
+ import('@/components/visualization/UserViewEnlarge.vue').then(res => {
+ userViewEnlarge.value = res.default
+ nextTick(() => {
+ userViewEnlargeRef.value.dialogInit(
+ canvasStyleData.value,
+ canvasViewInfo.value[item.id],
+ item,
+ opt,
+ { scale: curBaseScale.value }
+ )
+ })
})
}
@@ -1773,7 +1772,7 @@ defineExpose({
-
+
{
defaultConfigurationRef.value?.mult()
defaultConfigurationRef.value?.single()
handleDialogClick()
- curComponent.value.id = ''
+ if (curComponent.value) {
+ curComponent.value.id = ''
+ }
relationshipChartIndex.value = 0
dialogVisible.value = false
}
@@ -2269,6 +2271,7 @@ const timeGranularityMultipleChange = (val: string) => {
watch(
() => showError.value,
val => {
+ if (!curComponent.value) return
curComponent.value.showError = val
}
)
diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue
index a46decd3be..a8bfa914cd 100644
--- a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue
+++ b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue
@@ -1660,6 +1660,7 @@ const sourceChange = val => {
const finish = res => {
const { id, pid, name } = res
+ isUpdate = false
datasetName.value = name
nodeInfo = {
id,