mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
添加历史代码功能
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<script>
|
||||
import * as monaco from "monaco-editor";
|
||||
import { toRaw } from "vue";
|
||||
import importAll from "../api/importAll.js";
|
||||
import importAll from "../js/importAll.js";
|
||||
|
||||
// 批量导入声明文件
|
||||
let apis = importAll(
|
||||
@@ -135,6 +135,9 @@ export default {
|
||||
getEditorValue() {
|
||||
return toRaw(this.editor).getValue();
|
||||
},
|
||||
setEditorValue(value) {
|
||||
toRaw(this.editor).setValue(value);
|
||||
},
|
||||
setEditorLanguage(language) {
|
||||
monaco.editor.setModelLanguage(this.editor.getModel(), language);
|
||||
},
|
||||
|
Reference in New Issue
Block a user