fix 修复 三方调用跳转白屏问题(临时修复)

This commit is contained in:
疯狂的狮子Li 2023-06-21 17:03:26 +08:00
parent 13bb23c717
commit 18dd68edd5

View File

@ -22,13 +22,13 @@ await socialLogin(source, code, state)
.then(async (res) => {
if (res.code !== 200) {
ElMessage.error(res.msg);
router.go(-2);
location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
return;
}
loading.value = false;
setToken(res.msg);
ElMessage.success('登录成功');
router.go(-2);
location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
})
.catch(() => {
loading.value = false;