Explorar el Código

更改登录方式

JXDS18FUJT hace 2 años
padre
commit
01f0067552
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/home/index.tsx

+ 1 - 1
src/views/home/index.tsx

@@ -60,7 +60,7 @@ export const Home: React.FC = (props: any) => {
       }).then(res => {
         window.localStorage.setItem("token", res.data.data.token)
         window.localStorage.setItem("userInfo", JSON.stringify(res.data.data.thirdResult))
-        window.location.replace('/')
+        window.location.replace('/home')
         console.log(res.data.data.token)
       })
     }