|
@@ -17,12 +17,8 @@ use think\facade\Config;
|
|
|
|
|
|
use app\common\model\Category as CategoryModel;
|
|
|
use app\common\model\Article as ArticleModel;
|
|
|
-use app\common\service\FileService;
|
|
|
use app\common\facade\FileUtils;
|
|
|
|
|
|
-/**
|
|
|
- * 文章管理控制器
|
|
|
- */
|
|
|
class Article extends Base
|
|
|
{
|
|
|
protected $modelName = "Article";
|
|
@@ -39,10 +35,12 @@ class Article extends Base
|
|
|
|
|
|
$list = ArticleModel::queryPage($params);
|
|
|
|
|
|
- View::assign('category_tree', $category_tree);
|
|
|
+ View::assign([
|
|
|
+ 'category_tree' => $category_tree,
|
|
|
+ 'list' => $list,
|
|
|
+ 'cid' => $cid
|
|
|
+ ]);
|
|
|
|
|
|
- View::assign('list', $list);
|
|
|
- View::assign('cid', $cid);
|
|
|
return View::fetch();
|
|
|
}
|
|
|
|