diff --git a/core/core-frontend/src/pages/panel/App.vue b/core/core-frontend/src/pages/panel/App.vue index 8055e8bd47..49fe9bc718 100644 --- a/core/core-frontend/src/pages/panel/App.vue +++ b/core/core-frontend/src/pages/panel/App.vue @@ -53,9 +53,11 @@ const componentMap = { const isDataFilling = ref(false) const dataFillingPath = ref('') +const showComponent = ref(false) const changeCurrentComponent = val => { isDataFilling.value = false + showComponent.value = true currentComponent.value = undefined if (val && val.includes('DataFilling')) { if (val === 'DataFilling') { @@ -70,7 +72,10 @@ const changeCurrentComponent = val => { isDataFilling.value = true }) } else { - currentComponent.value = componentMap[val] + nextTick(() => { + currentComponent.value = componentMap[val] + showComponent.value = false + }) } } @@ -79,13 +84,12 @@ useEmitt({ callback: changeCurrentComponent }) -//currentComponent.value = componentMap[props.componentName] onMounted(() => { changeCurrentComponent(props.componentName) })