@zgfe/modules-settings 1.2.16-role.11 → 1.2.16-role.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -263,10 +263,10 @@ var RoleList = function RoleList(props) {
263
263
  });
264
264
  });
265
265
  if (res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.roleAuthStatus) {
266
- var _res$data6, _arr$, _arr$2, _arr$3, _arr$4;
266
+ var _res$data6, _arr$, _arr$2;
267
267
  var arr = [res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.authGroupList];
268
- setCondition(util.isString((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.json) ? JSON.parse((_arr$2 = arr[0]) === null || _arr$2 === void 0 ? void 0 : _arr$2.json) : []);
269
- console.log('detail arr ==', util.isString((_arr$3 = arr[0]) === null || _arr$3 === void 0 ? void 0 : _arr$3.json) ? JSON.parse((_arr$4 = arr[0]) === null || _arr$4 === void 0 ? void 0 : _arr$4.json) : []);
268
+ setCondition(arr.length && ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.json) ? JSON.parse((_arr$2 = arr[0]) === null || _arr$2 === void 0 ? void 0 : _arr$2.json) : []);
269
+ console.log('detail arr ===', arr);
270
270
  setIsRoleAuthStatus(true);
271
271
  }
272
272
  onChangeAppIds(usListArr, params === null || params === void 0 ? void 0 : params.id, res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.menuCodeMap, res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.settingMenuList);
@@ -298,9 +298,9 @@ var RoleList = function RoleList(props) {
298
298
  systemVersion: systemVersion
299
299
  }).then(function (res) {
300
300
  if (res === null || res === void 0 ? void 0 : res.data) {
301
- var _arr$5;
301
+ var _arr$3;
302
302
  var arr = util.menuTreeData([res === null || res === void 0 ? void 0 : res.data]);
303
- setFunctionList(((_arr$5 = arr[0]) === null || _arr$5 === void 0 ? void 0 : _arr$5.children) ? arr : []);
303
+ setFunctionList(((_arr$3 = arr[0]) === null || _arr$3 === void 0 ? void 0 : _arr$3.children) ? arr : []);
304
304
  }
305
305
  }).catch(function (err) {
306
306
  setFunctionList([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "1.2.16-role.11",
3
+ "version": "1.2.16-role.13",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [