pull/370/head
xiaojunnuo 2025-04-10 23:44:11 +08:00
parent be1b6f8edc
commit f68af7dcf2
2 changed files with 5 additions and 5 deletions

View File

@ -68,9 +68,9 @@ const monacoRef = ref();
let instanceRef: any = null; let instanceRef: any = null;
function disposeEditor() { function disposeEditor() {
// if (instanceRef.value) { if (instanceRef) {
// instanceRef.value.dispose(); //使 instanceRef.dispose(); //使
// } }
} }
onUnmounted(() => { onUnmounted(() => {
@ -165,7 +165,7 @@ async function initYaml(ctx: EditorCodeCtx) {
await importYamlContribution(); await importYamlContribution();
const { configureMonacoYaml } = await importMonacoYaml(); const { configureMonacoYaml } = await importMonacoYaml();
monaco.languages.register({ id: "yaml" }); monaco.languages.register({ id: "yaml" });
const id = `fs-editor-code-yaml-${props.id || ""}.yaml`; const id = `fs-editor-code-${props.id || ""}.yaml`;
const uri = monaco.Uri.parse(id); const uri = monaco.Uri.parse(id);
const schemas = []; const schemas = [];
if (ctx.schema) { if (ctx.schema) {