src/layout/components/SocialCallback/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/layout/components/SocialCallback/index.vue
@@ -27,7 +27,6 @@ if (res.code !== 200) { throw new Error(res.msg); } setToken(res.data.access_token); ElMessage.success(res.msg); location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index'; }; @@ -48,6 +47,7 @@ }; const loginByCode = async (data: LoginData) => { console.log(2) try { const res = await login(data); await processResponse(res);