From 000360a309ca565fd9101cf564ac9477f525cc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 13 Mar 2023 10:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E5=8F=B0=E6=89=93?= =?UTF-8?q?=E5=8C=85=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/route/route.php | 9 ++++----- template/admin/src/setting.env.js | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/crmeb/route/route.php b/crmeb/route/route.php index 3c6768124..b85d8d61c 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') . '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'); diff --git a/template/admin/src/setting.env.js b/template/admin/src/setting.env.js index 1873764ce..807eb5a61 100644 --- a/template/admin/src/setting.env.js +++ b/template/admin/src/setting.env.js @@ -19,7 +19,7 @@ const Setting = { // 部署应用包时的基本 URL publicPath: env === 'development' ? '/admin/' : '/admin/', // 生产环境构建文件的目录名 - outputDir: 'dist', + outputDir: 'dist/admin', // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录。 assetsDir: 'view_admin', // 开发环境每次保存时 lint 代码,会将 lint 错误输出为编译警告