fix
This commit is contained in:
parent
70ede8d0b0
commit
330bbfa503
@ -2,7 +2,7 @@ import Profile from "@/views/profile/Profile"
|
|||||||
import Login from "@/views/Login"
|
import Login from "@/views/Login"
|
||||||
|
|
||||||
export default function Index() {
|
export default function Index() {
|
||||||
if (!(localStorage.getItem("token") || localStorage.getItem("token") == '""')) {
|
if (localStorage.getItem("token") && localStorage.getItem("token") != '""') {
|
||||||
return <Profile />
|
return <Profile />
|
||||||
}
|
}
|
||||||
return <Login />
|
return <Login />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user