Skip to content

Commit

Permalink
fix: datasource remote result could not reshow again after edit (open…
Browse files Browse the repository at this point in the history
…tiny#847)

修复远程数据源面板请求结果输入框在编辑之后,重新点击发送请求,如果请求结果一样,无法重新填充到请求结果输入框的
bug
  • Loading branch information
chilingling committed Dec 4, 2024
1 parent 71c729b commit 431130a
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-button plain @click="check">查看已获取的字段</tiny-button>
<tiny-button plain @click="copyData">复制代码</tiny-button>
</div>
<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 @@ -64,11 +70,16 @@ export default {
const check = () => {
emit('check')
}
const handleChange = (val) => {
state.value = val
}
return {
state,
copyData,
check,
editor
editor,
handleChange
}
}
}
Expand Down

0 comments on commit 431130a

Please sign in to comment.