mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2026-02-27 01:14:40 +08:00
调整ruleeditor样式和功能
This commit is contained in:
@@ -30,6 +30,7 @@ const getFeatureCode = (cmds) => {
|
||||
};
|
||||
|
||||
const getLabeledCmds = (cmds, explain) => {
|
||||
if (cmds.length === 0) return [explain];
|
||||
return cmds.map((cmd) => {
|
||||
if (typeof cmd === "string") {
|
||||
return cmd || explain;
|
||||
@@ -130,9 +131,7 @@ export function useCommandManager() {
|
||||
|
||||
// 删除命令
|
||||
const removeCommand = (code) => {
|
||||
utoolsFull.copyText(
|
||||
JSON.stringify(state.allQuickCommands[code], null, 4)
|
||||
);
|
||||
utoolsFull.copyText(JSON.stringify(state.allQuickCommands[code], null, 4));
|
||||
delete state.allQuickCommands[code];
|
||||
dbManager.delDB("qc_" + code);
|
||||
removeCommandFromHistory(code);
|
||||
|
||||
Reference in New Issue
Block a user