mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
更新后台打包路径
This commit is contained in:
parent
03975529b8
commit
000360a309
@ -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');
|
||||
|
||||
@ -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 错误输出为编译警告
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user