feat: change default page to overview

This commit is contained in:
Emil Zhai
2022-12-03 15:18:15 +00:00
parent b585949d66
commit 31302003d4

View File

@@ -43,16 +43,16 @@ class Access_Core
$ipdbPath = dirname(__file__).'/lib/ipipfree.ipdb';
$this->ipdb = new Access_Ip($ipdbPath);
switch ($this->request->get('action')) {
case 'overview':
$this->action = 'overview';
$this->title = _t('访问概览');
break;
case 'logs':
default:
$this->action = 'logs';
$this->title = _t('访问日志');
$this->parseLogs();
break;
case 'overview':
default:
$this->action = 'overview';
$this->title = _t('访问概览');
break;
}
}