mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-21 01:52:50 +00:00
移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放public一个目录
This commit is contained in:
parent
f76da3fadf
commit
89ae09c0bd
@ -38,9 +38,6 @@ return [
|
|||||||
],
|
],
|
||||||
// 视图输出字符串内容替换
|
// 视图输出字符串内容替换
|
||||||
'view_replace_str' => [
|
'view_replace_str' => [
|
||||||
'{__PLUG_PATH}'=>PUBILC_PATH.'static/plug/',
|
|
||||||
'{__STATIC_PATH}'=>PUBILC_PATH.'static/',
|
|
||||||
'{__PUBLIC_PATH}'=>PUBILC_PATH,
|
|
||||||
'{__WAP_PATH}'=>PUBILC_PATH.'wap/first/static/wap/'
|
'{__WAP_PATH}'=>PUBILC_PATH.'wap/first/static/wap/'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
urlArgs: "v=201712230955",
|
urlArgs: "v=201712230955",
|
||||||
map: {
|
map: {
|
||||||
'*': {
|
'*': {
|
||||||
'css': '/public/static/plug/requirejs/require-css.js'
|
'css': '{__PLUG_PATH}requirejs/require-css.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
shim: {
|
shim: {
|
||||||
@ -24,7 +24,7 @@
|
|||||||
deps: ['css!yduicss']
|
deps: ['css!yduicss']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
baseUrl: '//' + location.hostname + '/public',
|
baseUrl: '//' + location.hostname + '/{__PUBLIC_PATH}',
|
||||||
paths: {
|
paths: {
|
||||||
'static': 'static',
|
'static': 'static',
|
||||||
'vue': 'static/plug/vue/dist/vue.min',
|
'vue': 'static/plug/vue/dist/vue.min',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user