增加通用开头功能

This commit is contained in:
2023-06-27 00:51:30 +08:00
parent a28a1c6a6a
commit 839a8e4734
9 changed files with 67 additions and 28 deletions

View File

@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace app\index\controller;
use app\model\Post as ModelPost;
use app\model\PostCategory;
use think\facade\Cache;
use think\facade\View;
use think\model\Relation;
@@ -47,7 +48,10 @@ class Post extends Common
$model_post->save();
View::assign('post', $model_post);
return View::fetch();
}