fix(仪表板): 移动端点击图表时控制台中存在错误

This commit is contained in:
dataeaseShu
2025-12-25 10:46:58 +08:00
committed by dataeaseShu
parent acb7b90760
commit 96ea246a9a
4 changed files with 6 additions and 6 deletions

View File

@@ -1775,7 +1775,7 @@ const setCacheId = debounce(() => {
watch(
() => curComponent.value,
val => {
if (!val || !!previewHeight.value) return
if (!val || !!previewHeight.value || mobileInPc) return
calcEle()
},
{ immediate: true }

View File

@@ -1173,3 +1173,7 @@ export const randomString = (length: number): string => {
}
return result
}
export const handleEmptyDataStrategy = (x, y) => {
return [x, y]
}

View File

@@ -529,7 +529,7 @@ const save = () => {
width: 8px;
height: 1px;
position: absolute;
bottom: 0;
bottom: -1px;
left: 0;
background: #1f232926;
}

View File

@@ -250,16 +250,12 @@ onMounted(async () => {
const canvasCache = wsCache.get('DE-DV-CATCH-' + resourceId)
if (canvasCache) {
canvasCacheOutRefShow.value = true
console.log(canvasCache)
nextTick(() => {
console.log(canvasCacheOutRef.value)
setTimeout(() => {
console.log(canvasCacheOutRef.value)
canvasCacheOutRef.value?.dialogInit({ canvasType: 'dashboard', resourceId: resourceId })
}, 300)
})
} else {
console.log('initLocalCanvasData...')
initLocalCanvasData(() => {
// do init
})