mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
写法优化
This commit is contained in:
@@ -235,8 +235,7 @@ export default {
|
||||
// 默认命令不可删除
|
||||
canCommandEdit() {
|
||||
if (utools.isDev()) return true;
|
||||
let tags = this.commandInfo.tags;
|
||||
return tags && tags.includes("默认") ? false : true;
|
||||
return this.commandInfo.tags?.includes("默认") ? false : true;
|
||||
},
|
||||
// 匹配类型的颜色
|
||||
cmdBadgeColor() {
|
||||
|
Reference in New Issue
Block a user