wujingjing
2025-03-05 4e394d1f4ed0928d5498083621966aba390a7642
src/components/chat/components/playBar/businessTable/ChartDisplay.vue
@@ -8,7 +8,7 @@
<script setup lang="ts" name="ChartDisplay">
import { defaultsDeep, groupBy } from 'lodash-es';
import { computed, ref } from 'vue';
import { computed, onMounted, ref, watch } from 'vue';
import { getChatChartOption, SCATTER_SYMBOL_SIZE } from '../../../chatComponents/common';
import { ChartTypeEnum } from '../../../chatComponents/types';
import { useDrawChatChart } from '/@/components/chat/chatComponents/hooks/useDrawChatChart';
@@ -174,5 +174,12 @@
const chartLoading = ref(false);
const { chartContainerResize, chartInstance } = useDrawChatChart({ chartRef, drawChart });
watch(
   () => props.records,
   (val) => {
      drawChart();
   }
);
</script>
<style scoped lang="scss"></style>