mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-20 03:03:40 +08:00
ref: plugin 支持 type over
This commit is contained in:
parent
781411c454
commit
fbecd3bc71
@ -96,6 +96,21 @@ new Vue({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (cmd.type === 'over') {
|
||||||
|
this.targetOptions.push({
|
||||||
|
type: 'ext',
|
||||||
|
name: cmd.label,
|
||||||
|
icon: plugin.icon,
|
||||||
|
click: () => {
|
||||||
|
ipcRenderer.send('superPanel-openPlugin', {
|
||||||
|
cmd: cmd,
|
||||||
|
plugin: plugin,
|
||||||
|
feature: fe,
|
||||||
|
data: word
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -173,8 +173,7 @@ window.utools = window.rubick = {
|
|||||||
},
|
},
|
||||||
get(key) {
|
get(key) {
|
||||||
const dbData = getData(dbPath) || [];
|
const dbData = getData(dbPath) || [];
|
||||||
|
return dbData.find(d => d._id === key) || '';
|
||||||
return dbData.find(d => d._id === key);
|
|
||||||
},
|
},
|
||||||
remove(key) {
|
remove(key) {
|
||||||
key = typeof key === 'object' ? key._id : key;
|
key = typeof key === 'object' ? key._id : key;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user