From ed259ea68f2229c1a625b295e76d24c1c361e85f Mon Sep 17 00:00:00 2001 From: lyq <1661898579@qq.com> Date: Wed, 19 Mar 2025 13:50:13 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20add=20=E9=9D=99=E6=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8F=AF=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2541874d34ad002e3c47a5ea0d2cdaf6d4437ae5. --- .../ChartDataMatchingAndShow/index.vue | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) 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, (