默认命令只读保护

This commit is contained in:
fofolee
2022-04-09 16:40:55 +08:00
parent 94b19dce5d
commit 690553c9e8
3 changed files with 10 additions and 2 deletions

View File

@@ -290,8 +290,6 @@ export default {
handleCardClick() {
// 视图模式下直接运行命令
if (this.cardStyle.code === 1) return this.runCommand();
if (!this.canCommandEdit)
return quickcommand.showMessageBox("默认命令不可编辑", "warning");
this.editCommand();
},
// 编辑命令