fix(数据大屏): 修复大屏预览后重新进入编辑界面导致的Tab时钟不显示等问题

This commit is contained in:
wangjiahao 2024-08-28 11:03:54 +08:00
parent 28d30113f1
commit 8859315dfe

View File

@ -292,6 +292,7 @@ const componentMoveIn = component => {
if (editableTabsValue.value === tabItem.name) { if (editableTabsValue.value === tabItem.name) {
//index //index
const curIndex = findComponentIndexById(component.id) const curIndex = findComponentIndexById(component.id)
if (curIndex > -1) {
// //
if (isDashboard()) { if (isDashboard()) {
eventBus.emit('removeMatrixItem-canvas-main', curIndex) eventBus.emit('removeMatrixItem-canvas-main', curIndex)
@ -319,6 +320,7 @@ const componentMoveIn = component => {
tabItem.componentData.push(component) tabItem.componentData.push(component)
} }
} }
}
}) })
reloadLinkage() reloadLinkage()