fix(codeeditor): empty value set failed.fixed:#659
This commit is contained in:
parent
7e2ca79ece
commit
ba2bebb406
|
|
@ -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' }
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue