From 654f7962b0b6b67f5927b7cda48da67c1a879fae Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 18 Aug 2020 20:25:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 1 + app/index/controller/Index.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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(); }