wesmiler 2 tháng trước cách đây
mục cha
commit
93ea303629
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      app/Services/Common/RoleService.php

+ 2 - 0
app/Services/Common/RoleService.php

@@ -85,6 +85,8 @@ class RoleService extends BaseService
             $menuIdList = array_key_value($roleMenuList, "menu_id");
             $check = UserRoleModel::where(['user_id'=>$userId,'role_id'=>1])->value('role_id');
             foreach ($menuList as &$val) {
+                $val['checked'] = false;
+                $val['false'] = false;
                 if (in_array($val['id'], $menuIdList) || $check) {
                     $val['checked'] = true;
                     $val['open'] = true;