mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-15 01:36:20 +08:00
fix(codeeditor): empty value set failed.fixed:#659
This commit is contained in:
@@ -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' }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user