mirror of https://github.com/certd/certd
chore:
parent
be1b6f8edc
commit
f68af7dcf2
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue