瀏覽代碼

登陆失败跳转至home

wyling007 3 年之前
父節點
當前提交
68854b0c39
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 {