暂时禁用自动跳转

This commit is contained in:
05412 2024-07-30 09:59:57 +08:00
parent cb73489126
commit 7823fac142

View File

@ -1,10 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import {useRouter} from "vue-router"; // import {useRouter} from "vue-router";
import HomeView from "./components/views/HomeView.vue"; import HomeView from "./components/views/HomeView.vue";
//
const token = localStorage.getItem("token") // const token = localStorage.getItem("token")
const router = useRouter() // const router = useRouter()
if (token == null) router.push("/login") // if (token == null) router.push("/login")
</script> </script>
<template> <template>