diff --git a/app/common.php b/app/common.php index 5f7ce97..d7329f0 100644 --- a/app/common.php +++ b/app/common.php @@ -19,6 +19,7 @@ use League\Flysystem\Util\MimeType; use think\File; use think\facade\Filesystem; use app\model\UploadFiles; +use think\app\Url; use think\facade\Session; function json_message($data = [], $code = 0, $msg = '') diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index f5a8e12..3d0f232 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -6,6 +6,7 @@ use app\model\Category; use app\model\Nav; use app\model\Post; use app\model\PostCategory; +use think\facade\View; use think\Request; class Index extends Common @@ -19,7 +20,7 @@ class Index extends Common { // - return $this->fetch(); + return View::fetch(); }