修复了单页面列表页不显示出来的问题

This commit is contained in:
hdm 2022-09-18 11:42:28 +08:00
parent 5224905dfb
commit 4504060b98
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ class Pages extends BaseController
// 验证失败 输出错误信息
return to_assign(1, $e->getError());
}
$param['admin_id'] = $this->uid;
$this->model->addPages($param);
}else{
$templates = get_file_list(CMS_ROOT . '/app/home/view/pages/');

View File

@ -38,7 +38,7 @@ class Pages extends Model
$list = $this->where($where)
->field('a.*,u.nickname as admin_name')
->alias('a')
->join('Admin u', 'a.admin_id = u.id')
->leftJoin('Admin u', 'a.admin_id = u.id')
->order($order)
->paginate($rows, false, ['query' => $param]);
return $list;