mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
refactor: 更新xpack及应用创建问题
This commit is contained in:
@@ -272,15 +272,18 @@ const saveResource = (checkParams?) => {
|
||||
url
|
||||
)
|
||||
}
|
||||
|
||||
if (appData.value) {
|
||||
initCanvasData(dvInfo.value.id, { busiFlag: 'dashboard' }, () => {
|
||||
useEmitt().emitter.emit('refresh-dataset-selector')
|
||||
useEmitt().emitter.emit('calcData-all')
|
||||
resourceAppOpt.value.close()
|
||||
dvMainStore.setAppDataInfo(null)
|
||||
snapshotStore.resetSnapshot()
|
||||
})
|
||||
initCanvasData(
|
||||
dvInfo.value.id,
|
||||
{ busiFlag: 'dashboard', resourceTable: 'snapshot' },
|
||||
() => {
|
||||
useEmitt().emitter.emit('refresh-dataset-selector')
|
||||
useEmitt().emitter.emit('calcData-all')
|
||||
resourceAppOpt.value.close()
|
||||
dvMainStore.setAppDataInfo(null)
|
||||
snapshotStore.resetSnapshot()
|
||||
}
|
||||
)
|
||||
}
|
||||
if (checkParams.withPublish) {
|
||||
publishStatusChange(checkParams.status)
|
||||
|
||||
@@ -243,7 +243,7 @@ export function historyAdaptor(
|
||||
canvasVersion
|
||||
) {
|
||||
// 防止出现主画布canvasId 不一致情况
|
||||
if (attachInfo.resourceTable === 'snapshot') {
|
||||
if (attachInfo?.resourceTable === 'snapshot') {
|
||||
canvasDataResult.forEach(componentItem => {
|
||||
componentItem.canvasId = 'canvas-main'
|
||||
})
|
||||
@@ -912,7 +912,13 @@ export async function decompressionPre(params, callBack) {
|
||||
.catch(e => {
|
||||
console.error(e)
|
||||
})
|
||||
historyAdaptor(deTemplateData.canvasStyleData, deTemplateData.componentData, null, null, null)
|
||||
historyAdaptor(
|
||||
deTemplateData.canvasStyleData,
|
||||
deTemplateData.componentData,
|
||||
null,
|
||||
{ resourceTable: 'snapshot' },
|
||||
null
|
||||
)
|
||||
callBack(deTemplateData)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user