fix: 修改折线图不展示,不会动态变更的bug

This commit is contained in:
奔跑的面条
2022-04-06 13:38:19 +08:00
parent cc0ecedd4e
commit e8ce806082
6 changed files with 3869 additions and 5703 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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
})
+1 -1
View File
@@ -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)
}
/**