Quellcode durchsuchen

修改前台路由加载

liaofei vor 2 Jahren
Ursprung
Commit
ed53a01bb3
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1 1
      crmeb/app/adminapi/controller/v1/setting/SystemAdmin.php
  2. 1 0
      crmeb/route/route.php

+ 1 - 1
crmeb/app/adminapi/controller/v1/setting/SystemAdmin.php

@@ -175,7 +175,7 @@ class SystemAdmin extends AuthController
                 return app('json')->fail(400183);
                 return app('json')->fail(400183);
             }
             }
         }
         }
-        
+
         if ($this->services->updateAdmin($this->adminId, $data))
         if ($this->services->updateAdmin($this->adminId, $data))
             return app('json')->success(100001);
             return app('json')->success(100001);
         else
         else

+ 1 - 0
crmeb/route/route.php

@@ -14,6 +14,7 @@ Route::miss(function () {
     switch (strtolower($appName)) {
     switch (strtolower($appName)) {
         case config('app.admin_prefix', 'admin'):
         case config('app.admin_prefix', 'admin'):
         case 'kefu':
         case 'kefu':
+        case 'app':
             return view(app()->getRootPath() . 'public' . DS . config('app.admin_prefix', 'admin') . DS . 'index.html');
             return view(app()->getRootPath() . 'public' . DS . config('app.admin_prefix', 'admin') . DS . 'index.html');
         case 'home':
         case 'home':
             if (request()->isMobile()) {
             if (request()->isMobile()) {