提交 ba2bebb4 编写于 作者: 无木

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

上级 7e2ca79e
......@@ -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' }
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册