无木
2021-05-27 ba2bebb4069085817a90d065ed5877fdb50a8039
fix(codeeditor): empty value set failed.fixed:#659
1个文件已修改
4 ■■■ 已修改文件
src/components/CodeEditor/src/codemirror/CodeMirror.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/CodeEditor/src/codemirror/CodeMirror.vue
@@ -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' }
      );