From c065dad9a0a6fbda449aa8cbda049731419f1a57 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 13 Oct 2020 14:12:09 +0800 Subject: [PATCH] Update view.php --- config/view.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/view.php b/config/view.php index a160c7b05..31f73068c 100644 --- a/config/view.php +++ b/config/view.php @@ -38,8 +38,8 @@ return [ 'taglib_end' => '}', // 定义模板替换字符串 'tpl_replace_string' => [ - '__APP__' => rtrim(url('@')->build(), '\\/'), - '__ROOT__' => rtrim(dirname(request()->basefile()), '\\/'), - '__PUBLIC__' => rtrim(dirname(request()->basefile(true)), '\\/'), + '__APP__' => rtrim(url('@')->build(), '\\/'), + '__ROOT__' => rtrim(dirname(request()->basefile(false)), '\\/'), + '__HOST__' => rtrim(dirname(request()->basefile(true)), '\\/'), ], ];