forked from github/dataease
fix(仪表板): 修复新复制的仪表板未保存是切换到移动端会弹出权限问题
This commit is contained in:
parent
f2ae1778ab
commit
904a96539a
@ -219,7 +219,7 @@ const openDataBoardSetting = () => {
|
||||
}
|
||||
|
||||
const openMobileSetting = () => {
|
||||
if (!dvInfo.value.id) {
|
||||
if (!dvInfo.value.id || dvInfo.value.dataState === 'prepare') {
|
||||
ElMessage.warning('请先保存当前页面')
|
||||
return
|
||||
}
|
||||
|
@ -137,6 +137,13 @@ const initLocalCanvasData = () => {
|
||||
dvInfo.value.pid = sourcePid
|
||||
setTimeout(() => {
|
||||
snapshotStore.recordSnapshotCache()
|
||||
// 复制时,初始化的保存按钮为激活状态
|
||||
if (opt === 'copy') {
|
||||
// 使用缓存时,初始化的保存按钮为激活状态
|
||||
setTimeout(() => {
|
||||
snapshotStore.recordSnapshotCache('renderChart')
|
||||
}, 1000)
|
||||
}
|
||||
}, 1500)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user