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) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ export type CustomScriptContext = {
|
||||||
icon: 'ri:javascript-line',
|
icon: 'ri:javascript-line',
|
||||||
desc: '【仅管理员】运行自定义js脚本执行',
|
desc: '【仅管理员】运行自定义js脚本执行',
|
||||||
group: pluginGroups.other.key,
|
group: pluginGroups.other.key,
|
||||||
showRunStrategy:true,
|
showRunStrategy: true,
|
||||||
default: {
|
default: {
|
||||||
strategy: {
|
strategy: {
|
||||||
runStrategy: RunStrategy.SkipWhenSucceed,
|
runStrategy: RunStrategy.SkipWhenSucceed,
|
||||||
|
|
Loading…
Reference in New Issue