神仙都没用 1 жил өмнө
parent
commit
67e94cda63

+ 3 - 1
src/modules/extend/editor/monaco/index.vue

@@ -68,7 +68,9 @@ function setContent(value: string = "") {
 		value = value.toString();
 	}
 
-	editor?.setValue(value);
+	if (value != getContent()) {
+		editor?.setValue(value);
+	}
 }
 
 // 格式化内容