Sfoglia il codice sorgente

更改编辑器设置类型优化

瑞强 吴 8 mesi fa
parent
commit
7247ca559c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      js/CodeEditor.js

+ 1 - 0
js/CodeEditor.js

@@ -2,6 +2,7 @@ class CodeEditor {
     constructor() { }
     dataID = "";
     set dataType(value) {
+        if(value == this._dataType) return;
         this._dataType = value;
         if (value == 0) {
             this.language = "html";