Jelajahi Sumber

更改编辑器设置类型优化

瑞强 吴 8 bulan lalu
induk
melakukan
7247ca559c
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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";