登录跳转统一登录平台

This commit is contained in:
junleea 2025-06-10 12:57:21 +08:00
parent 6b0ec18722
commit 9ed8f050e3
1 changed files with 9 additions and 2 deletions

View File

@ -69,9 +69,15 @@ const param = reactive({
password: defParam ? defParam.password : "",
});
onMounted(() => {
onMounted(async () => {
//
getMyUserInfo(localStorage.getItem("userId"));
let res = getMyUserInfo(localStorage.getItem("userId"));
if(res.code === 0){
//
router.push("/user");
}else{
window.location.href = "https://sv.ljsea.top/#/login?site=gs-vp"; //https://sv.ljsea.top/
}
});
//
@ -145,6 +151,7 @@ const getMyUserInfo = async (id) => {
} catch (e) {
console.log(e);
}
return result;
};
//