mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修改折线图不展示,不会动态变更的bug
This commit is contained in:
@@ -56,6 +56,7 @@ watch(() => chartEditStore.getEditCanvasConfig.chartThemeColor, (newColor: keyof
|
||||
})
|
||||
})
|
||||
option.options = mergeTheme(props.chartConfig.option, props.themeSetting, includes)
|
||||
option.options = props.chartConfig.option
|
||||
}
|
||||
}, {
|
||||
immediate: true,
|
||||
@@ -64,6 +65,7 @@ watch(() => chartEditStore.getEditCanvasConfig.chartThemeColor, (newColor: keyof
|
||||
watch(() => props.chartConfig.option.dataset, () => {
|
||||
option.options = props.chartConfig.option
|
||||
}, {
|
||||
immediate: true,
|
||||
deep: true
|
||||
})
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export const mergeTheme = <T, U>(
|
||||
themeSetting: U,
|
||||
includes: string[]
|
||||
) => {
|
||||
return merge({}, pick(themeSetting, includes), option)
|
||||
return option = merge({}, pick(themeSetting, includes), option)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user