fix 修复 三方调用跳转白屏问题(临时修复)
This commit is contained in:
parent
3b4950e0e3
commit
9b6dc3e844
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user