forked from github/dataease
Merge pull request #9818 from dataease/pr@dev-v2@fix_mobile
fix(仪表板): 修复新复制的仪表板未保存是切换到移动端会弹出权限问题
This commit is contained in:
commit
364f04e813
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user