Browse Source

登陆失败跳转至home

wyling007 3 years ago
parent
commit
68854b0c39
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/route/guard.ts

+ 1 - 0
src/route/guard.ts

@@ -41,6 +41,7 @@ const guard = (router: Router) => {
 					toast.message = `登陆失败`;
 					setTimeout(() => {
 						Toast.clear();
+						next("/home");
 					}, 1000);
 				}
 			} else {