forked from github/dataease
refactor: 及时清理模版缓存
This commit is contained in:
parent
a94bac0dd5
commit
47d5546395
@ -71,6 +71,7 @@ onMounted(() => {
|
||||
if (createType === 'template') {
|
||||
const deTemplateDataStr = wsCache.get(`de-template-data`)
|
||||
const deTemplateData = JSON.parse(deTemplateDataStr)
|
||||
wsCache.delete('de-template-data')
|
||||
dvMainStore.setComponentData(JSON.parse(deTemplateData['componentData']))
|
||||
dvMainStore.setCanvasStyle(JSON.parse(deTemplateData['canvasStyleData']))
|
||||
dvMainStore.setCanvasViewInfo(deTemplateData['canvasViewInfo'])
|
||||
|
@ -201,6 +201,7 @@ onMounted(() => {
|
||||
// 从模板新建
|
||||
if (createType === 'template') {
|
||||
const deTemplateDataStr = wsCache.get(`de-template-data`)
|
||||
wsCache.delete('de-template-data')
|
||||
const deTemplateData = JSON.parse(deTemplateDataStr)
|
||||
dvMainStore.setComponentData(JSON.parse(deTemplateData['componentData']))
|
||||
dvMainStore.setCanvasStyle(JSON.parse(deTemplateData['canvasStyleData']))
|
||||
|
Loading…
Reference in New Issue
Block a user