diff --git a/crmeb/config/app.php b/crmeb/config/app.php index 48f0699f1..c88c9a1e0 100644 --- a/crmeb/config/app.php +++ b/crmeb/config/app.php @@ -45,5 +45,7 @@ return [ // 显示错误信息 'show_error_msg' => false, // 没有开启消息队列命令或者定时任务命令的提醒开关 - 'console_remind' => true + 'console_remind' => true, + // admin路由前缀 + 'admin_prefix' => 'administration', ]; diff --git a/crmeb/route/route.php b/crmeb/route/route.php index 85dcbef01..8864adf6b 100644 --- a/crmeb/route/route.php +++ b/crmeb/route/route.php @@ -10,9 +10,10 @@ Route::miss(function () { $appRequest = str_replace('//', '/', $appRequest); $appName = explode('/', $appRequest)[0] ?? ''; } + switch (strtolower($appName)) { - case 'admin': - return view(app()->getRootPath() . 'public' . DS . 'admin' . DS . 'index.html'); + case config('app.admin_prefix','admin'): + return view(app()->getRootPath() . 'public' . DS . 'system.html'); case 'home': if (request()->isMobile()) { return redirect(app()->route->buildUrl('/')); diff --git a/template/admin/src/components/diyComponents/c_upload_img.vue b/template/admin/src/components/diyComponents/c_upload_img.vue index 0df8f9e0e..09bd8b7b9 100644 --- a/template/admin/src/components/diyComponents/c_upload_img.vue +++ b/template/admin/src/components/diyComponents/c_upload_img.vue @@ -32,6 +32,7 @@