diff --git a/crmeb/route/route.php b/crmeb/route/route.php index 3c6768124..71bb5ab33 100644 --- a/crmeb/route/route.php +++ b/crmeb/route/route.php @@ -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');