Merge pull request #9818 from dataease/pr@dev-v2@fix_mobile

fix(仪表板): 修复新复制的仪表板未保存是切换到移动端会弹出权限问题
This commit is contained in:
王嘉豪 2024-05-23 17:48:21 +08:00 committed by GitHub
commit 364f04e813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -219,7 +219,7 @@ const openDataBoardSetting = () => {
} }
const openMobileSetting = () => { const openMobileSetting = () => {
if (!dvInfo.value.id) { if (!dvInfo.value.id || dvInfo.value.dataState === 'prepare') {
ElMessage.warning('请先保存当前页面') ElMessage.warning('请先保存当前页面')
return return
} }

View File

@ -137,6 +137,13 @@ const initLocalCanvasData = () => {
dvInfo.value.pid = sourcePid dvInfo.value.pid = sourcePid
setTimeout(() => { setTimeout(() => {
snapshotStore.recordSnapshotCache() snapshotStore.recordSnapshotCache()
//
if (opt === 'copy') {
// 使
setTimeout(() => {
snapshotStore.recordSnapshotCache('renderChart')
}, 1000)
}
}, 1500) }, 1500)
} }
}) })