mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-24 12:20:18 +08:00
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
Block a user