修复密码登录问题

This commit is contained in:
lijun 2025-10-17 20:32:58 +08:00
parent d0180115bf
commit 3fafc002e3
1 changed files with 10 additions and 10 deletions

View File

@ -69,16 +69,16 @@ const param = reactive({
password: defParam ? defParam.password : "",
});
// onMounted(async () => {
// //
// let res = await 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/
// }
// });
onMounted(async () => {
//
let res = await 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/
}
});
//
const rules = {