瀏覽代碼

更改编辑器设置类型优化

瑞强 吴 8 月之前
父節點
當前提交
7247ca559c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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";