暂时禁用自动跳转
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">
|
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user