mirror of https://github.com/certd/certd
chore:
parent
be1b6f8edc
commit
f68af7dcf2
|
@ -68,9 +68,9 @@ const monacoRef = ref();
|
|||
let instanceRef: any = null;
|
||||
|
||||
function disposeEditor() {
|
||||
// if (instanceRef.value) {
|
||||
// instanceRef.value.dispose(); //使用完成销毁实例
|
||||
// }
|
||||
if (instanceRef) {
|
||||
instanceRef.dispose(); //使用完成销毁实例
|
||||
}
|
||||
}
|
||||
|
||||
onUnmounted(() => {
|
||||
|
@ -165,7 +165,7 @@ async function initYaml(ctx: EditorCodeCtx) {
|
|||
await importYamlContribution();
|
||||
const { configureMonacoYaml } = await importMonacoYaml();
|
||||
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 schemas = [];
|
||||
if (ctx.schema) {
|
||||
|
|
|
@ -12,7 +12,7 @@ export type CustomScriptContext = {
|
|||
icon: 'ri:javascript-line',
|
||||
desc: '【仅管理员】运行自定义js脚本执行',
|
||||
group: pluginGroups.other.key,
|
||||
showRunStrategy:true,
|
||||
showRunStrategy: true,
|
||||
default: {
|
||||
strategy: {
|
||||
runStrategy: RunStrategy.SkipWhenSucceed,
|
||||
|
|
Loading…
Reference in New Issue