Skip to content

Commit

Permalink
fix: datasource remote result could not reshow again after edit (#847)
Browse files Browse the repository at this point in the history
修复远程数据源面板请求结果输入框在编辑之后,重新点击发送请求,如果请求结果一样,无法重新填充到请求结果输入框的
bug
  • Loading branch information
chilingling authored Oct 22, 2024
1 parent 00cdbba commit 119b9e8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/plugins/datasource/src/DataSourceRemoteDataResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
></tiny-alert>
</div>
<div id="remote-data-editor" class="data-editor">
<monaco-editor ref="editor" :value="state.value" class="monaco-editor" :options="state.options" />
<monaco-editor
ref="editor"
:value="state.value"
class="monaco-editor"
:options="state.options"
@change="handleChange"
/>
</div>
</div>
</template>
Expand Down Expand Up @@ -68,10 +74,15 @@ export default {
emit('copy', state.value)
}
const handleChange = (val) => {
state.value = val
}
return {
state,
copyData,
editor
editor,
handleChange
}
}
}
Expand Down

0 comments on commit 119b9e8

Please sign in to comment.