diff --git a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue index 94e8c71f..59cc7750 100644 --- a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue +++ b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue @@ -113,15 +113,7 @@ - - - 运行 + @@ -138,7 +130,6 @@ import { ChartDataMonacoEditor } from '../ChartDataMonacoEditor' import { useFile } from '../../hooks/useFile.hooks' import { useTargetData } from '../../../hooks/useTargetData.hook' import { toString, isArray } from '@/utils' -import { MonacoEditor } from '@/components/Pages/MonacoEditor' const { targetData } = useTargetData() defineProps({ @@ -249,21 +240,6 @@ const initFieldListHandle = () => { } } -// 处理编辑器内容更新 -const handleEditorUpdate = (val: string) => { - try { - if (!val) return (source.value = '此组件无数据源') - source.value = JSON.parse(val) - } catch (error) { - console.log(error) - } -} - -// 监听点击运行按钮的事件 -const handleRun = () => { - targetData.value.option.dataset = source.value -} - watch( () => targetData.value?.option?.dataset, (