Update view.php

This commit is contained in:
Anyon 2020-10-13 14:12:30 +08:00
parent c065dad9a0
commit dc0f15c2b0

View File

@ -39,7 +39,7 @@ return [
// 定义模板替换字符串
'tpl_replace_string' => [
'__APP__' => rtrim(url('@')->build(), '\\/'),
'__ROOT__' => rtrim(dirname(request()->basefile(false)), '\\/'),
'__ROOT__' => rtrim(dirname(request()->basefile()), '\\/'),
'__HOST__' => rtrim(dirname(request()->basefile(true)), '\\/'),
],
];