暂时禁用自动跳转
This commit is contained in:
parent
cb73489126
commit
7823fac142
10
src/App.vue
10
src/App.vue
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user