mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-18 08:44:16 +08:00
✨ 插件适配窗口缩放;修复窗口尺寸调整的bug;新增 createBrowserWindow、getCursorScreenPoint、getDisplayNearestPoint、outPlugin API
This commit is contained in:
@@ -8,6 +8,10 @@ import { useRouter } from "vue-router";
|
||||
const router = useRouter();
|
||||
window.rubick.onPluginEnter(({ code, type, payload }) => {
|
||||
const current = window.exports[code];
|
||||
if (current.mode === 'none') {
|
||||
current.args.enter && current.args.enter({ code: code, type, payload });
|
||||
return;
|
||||
}
|
||||
router.push({
|
||||
name: current.mode,
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user