修复密码登录问题
This commit is contained in:
parent
d0180115bf
commit
3fafc002e3
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue