更新基础路由

This commit is contained in:
evoxwht 2023-04-21 14:36:41 +08:00
parent 0c806a0d2b
commit cbdfcaea82

View File

@ -25,7 +25,7 @@ Route::miss(function () {
return view(app()->getRootPath() . 'public' . DS . 'index.html');
default:
if (!request()->isMobile()) {
if (is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) {
if (is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('mdType')) {
return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
} else {
if (request()->get('type')) {