mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix: 修复切换主题导致部分配置丢失问题 (#17828)
This commit is contained in:
@@ -101,7 +101,9 @@ const subjectEdit = () => {
|
||||
|
||||
const subjectChange = () => {
|
||||
if (!themeSelected.value) {
|
||||
dvMainStore.setCanvasStyle(JSON.parse(subjectItem.value.details))
|
||||
const canvasStyleTemp = JSON.parse(subjectItem.value.details)
|
||||
canvasStyleTemp['dashboard']['showGrid'] = canvasStyleTemp['dashboard']['showGrid'] || false
|
||||
dvMainStore.setCanvasStyle(canvasStyleTemp)
|
||||
snapshotStore.recordSnapshotCache('renderChart')
|
||||
adaptCurThemeCommonStyleAll()
|
||||
useEmitt().emitter.emit('onSubjectChange')
|
||||
|
||||
Reference in New Issue
Block a user