Commit ba2bebb4 authored by 无木's avatar 无木

fix(codeeditor): empty value set failed.fixed:#659

parent 7e2ca79e
...@@ -53,7 +53,9 @@ ...@@ -53,7 +53,9 @@
async (v) => { async (v) => {
await nextTick(); await nextTick();
const oldValue = editor?.getValue(); const oldValue = editor?.getValue();
v && v !== oldValue && editor?.setValue(v); if (v !== oldValue) {
editor?.setValue(v ? v : '');
}
}, },
{ flush: 'post' } { flush: 'post' }
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment