支持文件检索呼起插件

This commit is contained in:
muwoo
2021-12-20 18:33:00 +08:00
parent ced8aa846b
commit ff118dfe2d
25 changed files with 351 additions and 70 deletions

View File

@@ -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
},
});
});