diff --git a/library/think/View.php b/library/think/View.php index 6edd69a0..6a96b740 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -40,7 +40,7 @@ class View // 基础替换字符串 $request = Request::instance(); $base = $request->root(); - $root = strpos($base, '.') ? dirname($base) : $base; + $root = strpos($base, '.') ? ltrim(dirname($base), '\\') : $base; if ('' != $root) { $root = '/' . $root; }