2025-10-15 14:07:39 +08:00
|
|
|
<template>
|
2025-11-11 14:33:27 +08:00
|
|
|
<div></div>
|
2025-10-15 14:07:39 +08:00
|
|
|
</template>
|
2025-11-11 14:33:27 +08:00
|
|
|
<script setup>
|
|
|
|
|
import { useRoute, useRouter } from "vue-router";
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const token = route.query.token;
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
if (token) {
|
|
|
|
|
localStorage.setItem("token", token);
|
|
|
|
|
router.replace({ path: route.path }).then(() => {
|
|
|
|
|
window.location.reload();
|
|
|
|
|
});
|
2025-10-15 14:07:39 +08:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
</style>
|