From 690553c9e832fa14a74334da5c199255d435df90 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 9 Apr 2022 16:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=91=BD=E4=BB=A4=E5=8F=AA?= =?UTF-8?q?=E8=AF=BB=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandCard.vue | 2 -- src/components/CommandEditor.vue | 1 + src/components/CommandMenu.vue | 9 +++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/CommandCard.vue b/src/components/CommandCard.vue index a31270a..f81a7b7 100644 --- a/src/components/CommandCard.vue +++ b/src/components/CommandCard.vue @@ -290,8 +290,6 @@ export default { handleCardClick() { // 视图模式下直接运行命令 if (this.cardStyle.code === 1) return this.runCommand(); - if (!this.canCommandEdit) - return quickcommand.showMessageBox("默认命令不可编辑", "warning"); this.editCommand(); }, // 编辑命令 diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index 42b5f25..2c7cea5 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -3,6 +3,7 @@