evoxwht 2 лет назад
Родитель
Сommit
476ae9b535
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      crmeb/route/route.php

+ 4 - 5
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');