如果已登录打开登录页时自动跳个人中心
This commit is contained in:
parent
fd3afc5595
commit
00ede7adcd
|
|
@ -24,6 +24,9 @@ class LoginController extends Controller
|
|||
{
|
||||
public function index()
|
||||
{
|
||||
if (current_customer()) {
|
||||
return redirect(shop_route('account.index'));
|
||||
}
|
||||
return view('account/login');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue