mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
更新后台路由
This commit is contained in:
parent
ed53670d81
commit
476ae9b535
@ -12,18 +12,17 @@ Route::miss(function () {
|
||||
}
|
||||
|
||||
switch (strtolower($appName)) {
|
||||
case config('app.admin_prefix','admin'):
|
||||
return view(app()->getRootPath() . 'public' . DS . 'system.html');
|
||||
case config('app.admin_prefix', 'admin'):
|
||||
case 'kefu':
|
||||
return view(app()->getRootPath() . 'public' . DS . config('app.admin_prefix', 'admin') . DS . 'system.html');
|
||||
case 'home':
|
||||
if (request()->isMobile()) {
|
||||
return redirect(app()->route->buildUrl('/'));
|
||||
} else {
|
||||
return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
|
||||
}
|
||||
case 'kefu':
|
||||
return view(app()->getRootPath() . 'public' . DS . 'system.html');
|
||||
case 'pages':
|
||||
return view(app()->getRootPath() . 'public' .DS . 'index.html');
|
||||
return view(app()->getRootPath() . 'public' . DS . 'index.html');
|
||||
default:
|
||||
if (!request()->isMobile() && is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) {
|
||||
return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user