mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 06:45:24 +00:00
refac
This commit is contained in:
parent
dc6e68bd60
commit
50b1a3471c
1 changed files with 7 additions and 5 deletions
|
|
@ -31,12 +31,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateValue = () => {
|
const updateValue = () => {
|
||||||
|
if (_value !== value) {
|
||||||
_value = value;
|
_value = value;
|
||||||
if (codeEditor) {
|
if (codeEditor) {
|
||||||
codeEditor.dispatch({
|
codeEditor.dispatch({
|
||||||
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }]
|
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export let id = '';
|
export let id = '';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue