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:
@@ -45,7 +45,7 @@ export const useChartDataFetch = (
|
||||
fetchInterval = setInterval(async () => {
|
||||
const res:any = await http(requestHttpType.value)(completePath || '', {})
|
||||
if (res.data) {
|
||||
// 是否是 Echarts
|
||||
// 是否是 Echarts 组件
|
||||
const isECharts =
|
||||
targetComponent.chartConfig.package ===
|
||||
PackagesCategoryEnum.CHARTS
|
||||
|
||||
@@ -26,6 +26,7 @@ export const langList = [
|
||||
const i18n = createI18n({
|
||||
locale: langStorage?.lang || lang,
|
||||
globalInjection: true,
|
||||
legacy:false,
|
||||
messages: {
|
||||
[LangEnum.zh]: zh,
|
||||
[LangEnum.en]: en
|
||||
|
||||
@@ -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