|
@@ -214,18 +214,21 @@ const login = () => {
|
|
|
.then((res) => {
|
|
|
if (res.state == 200) {
|
|
|
filtersStore.setMemberInfo(res.data);
|
|
|
- if (window.history.state.back) {
|
|
|
- router.replace({
|
|
|
- path: '/'
|
|
|
- })
|
|
|
- // if(window.history.state.back == '/register' || window.history.state.back == '/member/login/forget' || window.history.state.back == '/member/login/forget' || window.history.state.back == '/member/login/forget'){
|
|
|
- // window.location.href = "/";
|
|
|
- // }else{
|
|
|
- // window.location.href = window.history.state.back;
|
|
|
- // }
|
|
|
- } else {
|
|
|
- router.replace({ path: "/member/home" });
|
|
|
- }
|
|
|
+ router.replace({
|
|
|
+ path: '/'
|
|
|
+ })
|
|
|
+ // if (window.history.state.back) {
|
|
|
+ // router.replace({
|
|
|
+ // path: '/'
|
|
|
+ // })
|
|
|
+ // // if(window.history.state.back == '/register' || window.history.state.back == '/member/login/forget' || window.history.state.back == '/member/login/forget' || window.history.state.back == '/member/login/forget'){
|
|
|
+ // // window.location.href = "/";
|
|
|
+ // // }else{
|
|
|
+ // // window.location.href = window.history.state.back;
|
|
|
+ // // }
|
|
|
+ // } else {
|
|
|
+ // router.replace({ path: "/member/home" });
|
|
|
+ // }
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
loginLoding.value = false;
|