This commit is contained in:
xmdhs 2023-10-13 22:21:09 +08:00
parent 70ede8d0b0
commit 330bbfa503
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95

View File

@ -2,7 +2,7 @@ import Profile from "@/views/profile/Profile"
import Login from "@/views/Login"
export default function Index() {
if (!(localStorage.getItem("token") || localStorage.getItem("token") == '""')) {
if (localStorage.getItem("token") && localStorage.getItem("token") != '""') {
return <Profile />
}
return <Login />