From 119b9e8fe86f38b83a21f187d1f5beb2816bb4e3 Mon Sep 17 00:00:00 2001 From: chilingling <26962197+chilingling@users.noreply.github.com> Date: Mon, 21 Oct 2024 20:49:49 -0700 Subject: [PATCH] fix: datasource remote result could not reshow again after edit (#847) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复远程数据源面板请求结果输入框在编辑之后,重新点击发送请求,如果请求结果一样,无法重新填充到请求结果输入框的 bug --- .../datasource/src/DataSourceRemoteDataResult.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/plugins/datasource/src/DataSourceRemoteDataResult.vue b/packages/plugins/datasource/src/DataSourceRemoteDataResult.vue index c42eebd8b..24957b51b 100644 --- a/packages/plugins/datasource/src/DataSourceRemoteDataResult.vue +++ b/packages/plugins/datasource/src/DataSourceRemoteDataResult.vue @@ -10,7 +10,13 @@ >
- +
@@ -68,10 +74,15 @@ export default { emit('copy', state.value) } + const handleChange = (val) => { + state.value = val + } + return { state, copyData, - editor + editor, + handleChange } } }