提交 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论