From 9c411cdacd3cc934364820b6d1b9e7c6e7e72f6b Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 1 Jun 2023 18:07:28 +0800 Subject: [PATCH] delete useless code --- src/components/MonacoEditorVue/index.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/components/MonacoEditorVue/index.js b/src/components/MonacoEditorVue/index.js index 3149eeb..e85518b 100644 --- a/src/components/MonacoEditorVue/index.js +++ b/src/components/MonacoEditorVue/index.js @@ -119,19 +119,6 @@ export default { theme: theme, ...options }); - this.editor.addAction({ - id: 'my-unique-id', - label: 'Hello World', - keybindings: [ - monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_M, - ], - contextMenuGroupId: 'navigation', - contextMenuOrder: 1.5, - run: function(ed) { - alert('Hello World!'); - } - }); - this.diffEditor && this._setModel(this.value, this.original); this._editorMounted(this.editor); //编辑器初始化后 },