diff --git a/core/core-frontend/src/components/visualization/common/DragInfo.vue b/core/core-frontend/src/components/visualization/common/DragInfo.vue index 5afd1345ec..df78bc02c2 100644 --- a/core/core-frontend/src/components/visualization/common/DragInfo.vue +++ b/core/core-frontend/src/components/visualization/common/DragInfo.vue @@ -16,6 +16,8 @@ import dvDragTips from '@/assets/svg/dv-drag-tips.svg' import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' import { storeToRefs } from 'pinia' +import { useI18n } from '@/hooks/web/useI18n' +const { t } = useI18n() const dvMainStore = dvMainStoreWithOut() const { dvInfo, mobileInPc } = storeToRefs(dvMainStore) diff --git a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue index 2321fe8294..046e7d311e 100644 --- a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue +++ b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue @@ -251,6 +251,7 @@ const handleBack = () => { mobileStatusChange('mobilePatch', undefined) return } + dvMainStore.setCurComponent({ component: null, index: null }) ElMessageBox.confirm('当前的更改尚未保存,确定退出吗?', { confirmButtonType: 'primary', type: 'warning', diff --git a/core/core-frontend/src/views/dashboard/index.vue b/core/core-frontend/src/views/dashboard/index.vue index 68f56a2b55..ebea2a420d 100644 --- a/core/core-frontend/src/views/dashboard/index.vue +++ b/core/core-frontend/src/views/dashboard/index.vue @@ -122,6 +122,7 @@ const onMobileConfig = () => { dvMainStore.setCanvasStyle(canvasStyleDataCopy) nextTick(() => { mobileConfig.value = true + dvMainStore.setCurComponent({ component: null, index: null }) }) } diff --git a/core/core-frontend/src/views/mobile/panel/index.vue b/core/core-frontend/src/views/mobile/panel/index.vue index d39ea5e610..af4f333e06 100644 --- a/core/core-frontend/src/views/mobile/panel/index.vue +++ b/core/core-frontend/src/views/mobile/panel/index.vue @@ -28,7 +28,7 @@ const hanedleMessage = event => { ele.y = my ele.sizeX = mSizeX ele.sizeY = mSizeY - ele.style = mStyle || ele.style + ele.style = deepCopy(mStyle || ele.style) ele.commonBackground = deepCopy(mCommonBackground || ele.commonBackground) ele.events = deepCopy(mEvents || ele.events) ele.propValue = deepCopy(mPropValue || ele.propValue)