更新代码,完善功能
This commit is contained in:
@@ -215,18 +215,17 @@ class Config extends Admin {
|
||||
/**
|
||||
* @title 主题选择
|
||||
*/
|
||||
public function themes() {
|
||||
$list = $this->model->getThemesList();
|
||||
$pc = config('pc_themes');
|
||||
$mobile = config('mobile_themes');
|
||||
$data = array(
|
||||
public function themes(ConfigM $config) {
|
||||
$list = $config->getThemesList();
|
||||
$pc = config('system_config.pc_themes');
|
||||
$mobile = config('system_config.mobile_themes');
|
||||
|
||||
$this->data = array(
|
||||
'pc' => $pc,
|
||||
'mobile' => $mobile,
|
||||
'list' => $list,
|
||||
);
|
||||
|
||||
$this->assign($data);
|
||||
$this->setMeta('主题设置');
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user