mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-25 20:09:27 +08:00
✨ 支持文件检索呼起插件
This commit is contained in:
@@ -6,12 +6,12 @@
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
const router = useRouter();
|
||||
window.rubick.onPluginEnter(({ code }) => {
|
||||
window.rubick.onPluginEnter(({ code, type, payload }) => {
|
||||
const current = window.exports[code];
|
||||
router.push({
|
||||
name: current.mode,
|
||||
params: {
|
||||
code,
|
||||
code, type, payload
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user