mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-23 12:52:43 +08:00
26 lines
354 B
Vue
26 lines
354 B
Vue
<template>
|
|
<router-view />
|
|
</template>
|
|
|
|
<script setup>
|
|
import { useRouter } from "vue-router";
|
|
|
|
const router = useRouter();
|
|
window.rubick.onPluginEnter(({ code }) => {
|
|
const current = window.exports[code];
|
|
router.push({
|
|
name: current.mode,
|
|
params: {
|
|
code,
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|