Skip to content

Commit 119b9e8

Browse files
authored
fix: datasource remote result could not reshow again after edit (#847)
修复远程数据源面板请求结果输入框在编辑之后,重新点击发送请求,如果请求结果一样,无法重新填充到请求结果输入框的 bug
1 parent 00cdbba commit 119b9e8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

packages/plugins/datasource/src/DataSourceRemoteDataResult.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
></tiny-alert>
1111
</div>
1212
<div id="remote-data-editor" class="data-editor">
13-
<monaco-editor ref="editor" :value="state.value" class="monaco-editor" :options="state.options" />
13+
<monaco-editor
14+
ref="editor"
15+
:value="state.value"
16+
class="monaco-editor"
17+
:options="state.options"
18+
@change="handleChange"
19+
/>
1420
</div>
1521
</div>
1622
</template>
@@ -68,10 +74,15 @@ export default {
6874
emit('copy', state.value)
6975
}
7076
77+
const handleChange = (val) => {
78+
state.value = val
79+
}
80+
7181
return {
7282
state,
7383
copyData,
74-
editor
84+
editor,
85+
handleChange
7586
}
7687
}
7788
}

0 commit comments

Comments
 (0)