forked from github/dataease
Merge pull request #7481 from dataease/pr@dev-v2@refactor_copy
refactor: 优化资源复制
This commit is contained in:
commit
6732a476ba
@ -883,7 +883,9 @@ export const dvMainStore = defineStore('dataVisualization', {
|
||||
if (this.dvInfo) {
|
||||
this.dvInfo.dataState = 'ready'
|
||||
this.dvInfo.optType = null
|
||||
this.dvInfo.id = newId
|
||||
if (newId) {
|
||||
this.dvInfo.id = newId
|
||||
}
|
||||
}
|
||||
},
|
||||
createInit(dvType, resourceId?, pid?) {
|
||||
|
@ -168,9 +168,7 @@ export function canvasSave(callBack) {
|
||||
|
||||
const method = dvInfo.value.id ? updateCanvas : saveCanvas
|
||||
method(canvasInfo).then(res => {
|
||||
if (res && res.data) {
|
||||
dvMainStore.updateDvInfoId(res.data)
|
||||
}
|
||||
dvMainStore.updateDvInfoId(res.data)
|
||||
snapshotStore.resetStyleChangeTimes()
|
||||
callBack(res)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user