Ver código fonte

fix: 解决折线图预览不会展示的问题

奔跑的面条 3 anos atrás
pai
commit
f0f414400f

+ 2 - 2
src/packages/components/Charts/Lines/LineCommon/index.vue

@@ -61,9 +61,9 @@ watch(() => chartEditStore.getEditCanvasConfig.chartThemeColor, (newColor: keyof
         v.color = themeColor[i]
       })
     })
-    option.value = mergeTheme(props.chartConfig.option, props.themeSetting, includes)
-    props.chartConfig.option = option.value
   }
+  option.value = mergeTheme(props.chartConfig.option, props.themeSetting, includes)
+  props.chartConfig.option = option.value
 }, {
   immediate: true,
 })

+ 0 - 2
src/views/chart/contentHeader/headerLeftBtn/index.vue

@@ -60,8 +60,6 @@ interface ItemType<T> {
   icon: any
 }
 
-console.log(useChartLayoutStore())
-
 const btnList = reactive<ItemType<ChartLayoutStoreEnum>[]>([
   {
     key: ChartLayoutStoreEnum.CHARTS,