瀏覽代碼

更改登录方式

JXDS18FUJT 2 年之前
父節點
當前提交
01f0067552
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
       })
     }