@zgfe/modules-settings 1.2.16-role.12 → 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.
|
@@ -265,8 +265,8 @@ var RoleList = function RoleList(props) {
|
|
|
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
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(arr.length ? JSON.parse((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr
|
|
269
|
-
console.log('detail arr
|
|
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);
|