diff --git a/application/admin/controller/Config.php b/application/admin/controller/Config.php index 91fa76017..44d520852 100644 --- a/application/admin/controller/Config.php +++ b/application/admin/controller/Config.php @@ -43,14 +43,14 @@ class Config extends BasicAdmin { */ public function index() { if (!$this->request->isPost()) { - parent::_list($this->table); - } else { - foreach ($this->request->post() as $key => $vo) { - sysconf($key, $vo); - } - LogService::write('系统管理', '修改系统配置参数成功'); - $this->success('数据修改成功!', ''); + $this->assign('title', $this->table); + return view(); } + foreach ($this->request->post() as $key => $vo) { + sysconf($key, $vo); + } + LogService::write('系统管理', '修改系统配置参数成功'); + $this->success('数据修改成功!', ''); } /**