如果已登录打开登录页时自动跳个人中心

This commit is contained in:
TL 2022-07-04 17:13:58 +08:00
parent fd3afc5595
commit 00ede7adcd
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ class LoginController extends Controller
{
public function index()
{
if (current_customer()) {
return redirect(shop_route('account.index'));
}
return view('account/login');
}