This commit is contained in:
root 2019-12-25 15:26:34 +08:00
parent b39ba5686a
commit 5732cd59f3

View File

@ -46,9 +46,10 @@ class LoginController extends Controller
$request->session()->put('is_admin', true);
}
}
$location = url('/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard');
if (config('v2board.app_url')) {
$location = config('v2board.app_url') . '/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard';
} else {
$location = url('/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard');
}
header('Location:' . $location);
}