Explorar el Código

登陆失败跳转至home

wyling007 hace 3 años
padre
commit
68854b0c39
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 {