fix(仪表板): 修复新复制的仪表板未保存是切换到移动端会弹出权限问题

This commit is contained in:
wangjiahao 2024-05-23 17:47:50 +08:00
parent f2ae1778ab
commit 904a96539a
2 changed files with 8 additions and 1 deletions

View File

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

View File

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