mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 20:42:07 +08:00
fix(仪表板): 移动端点击图表时控制台中存在错误
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -1173,3 +1173,7 @@ export const randomString = (length: number): string => {
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
export const handleEmptyDataStrategy = (x, y) => {
|
||||
return [x, y]
|
||||
}
|
||||
|
||||
@@ -529,7 +529,7 @@ const save = () => {
|
||||
width: 8px;
|
||||
height: 1px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
bottom: -1px;
|
||||
left: 0;
|
||||
background: #1f232926;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user