暂时禁用自动跳转

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">
import {useRouter} from "vue-router";
// import {useRouter} from "vue-router";
import HomeView from "./components/views/HomeView.vue";
const token = localStorage.getItem("token")
const router = useRouter()
if (token == null) router.push("/login")
//
// const token = localStorage.getItem("token")
// const router = useRouter()
// if (token == null) router.push("/login")
</script>
<template>