fix(codeeditor): empty value set failed.fixed:#659
This commit is contained in:
parent
7e2ca79ece
commit
ba2bebb406
|
|
@ -53,7 +53,9 @@
|
|||
async (v) => {
|
||||
await nextTick();
|
||||
const oldValue = editor?.getValue();
|
||||
v && v !== oldValue && editor?.setValue(v);
|
||||
if (v !== oldValue) {
|
||||
editor?.setValue(v ? v : '');
|
||||
}
|
||||
},
|
||||
{ flush: 'post' }
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue