wesmiler il y a 2 mois
Parent
commit
93ea303629
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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;