修复密码登录问题
This commit is contained in:
parent
d0180115bf
commit
3fafc002e3
|
|
@ -69,16 +69,16 @@ const param = reactive({
|
||||||
password: defParam ? defParam.password : "",
|
password: defParam ? defParam.password : "",
|
||||||
});
|
});
|
||||||
|
|
||||||
// onMounted(async () => {
|
onMounted(async () => {
|
||||||
// // 保存登录参数到本地存储
|
// 保存登录参数到本地存储
|
||||||
// let res = await getMyUserInfo(localStorage.getItem("userId"));
|
let res = await getMyUserInfo(localStorage.getItem("userId"));
|
||||||
// if(res.code === 0){
|
if(res.code === 0){
|
||||||
// // 如果已经登录,跳转到用户页面
|
// 如果已经登录,跳转到用户页面
|
||||||
// router.push("/user");
|
router.push("/user");
|
||||||
// }else{
|
}else{
|
||||||
// window.location.href = "https://sv.ljsea.top/#/login?site=gs-vp"; //https://sv.ljsea.top/
|
window.location.href = "https://sv.ljsea.top/#/login?site=gs-vp"; //https://sv.ljsea.top/
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
|
|
||||||
// 表单验证规则
|
// 表单验证规则
|
||||||
const rules = {
|
const rules = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue