修正几处已知bug

This commit is contained in:
2018-03-07 12:51:32 +08:00
parent 047e41a8d9
commit 81fa6b30a2
3 changed files with 3 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ class Admin extends Base {
$models = AuthGroup::getAuthModels(session('user_auth.uid'));
foreach ($list as $key => $value) {
if (IS_ROOT || in_array($value['id'], $models)) {
if ('admin/content/index' == $this->url && input('model_id') == $value['id']) {
if ('admin/content/index' == $this->request->path() && input('model_id') == $value['id']) {
$value['style'] = "active";
}
$value['url'] = "admin/content/index?model_id=" . $value['id'];