react-toolkits 2.13.13 → 2.13.14

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.13.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 4149042: beta
8
+
3
9
  ## 2.13.13
4
10
 
5
11
  ### Patch Changes
package/lib/index.js CHANGED
@@ -518,10 +518,10 @@ var init_highlight = __esm({
518
518
  }
519
519
  });
520
520
  function useMenuList() {
521
- const { signInPath, axios: axios2 } = useToolkitsStore((s) => s);
521
+ const { signInPath, axios: axios2, gameId } = useToolkitsStore((s) => s);
522
522
  return useSWR5(
523
- window.location.pathname !== signInPath ? "/api/usystem/menu/navbar" : null,
524
- (url4) => axios2(url4).then((response) => response.data.data)
523
+ window.location.pathname !== signInPath ? ["/api/usystem/menu/navbar", gameId] : null,
524
+ ([url4]) => axios2(url4).then((response) => response.data.data)
525
525
  );
526
526
  }
527
527
  var usePermissions, usePermission;
@@ -2238,13 +2238,13 @@ var init_permissionCollapse = __esm({
2238
2238
  onChange: (e) => {
2239
2239
  onCheckChange(
2240
2240
  e,
2241
- item.permissions.map((permission) => permission.value)
2241
+ item.permissions?.map((permission) => permission.value)
2242
2242
  );
2243
2243
  },
2244
2244
  children: t("global.selectAll")
2245
2245
  }
2246
2246
  ),
2247
- children: /* @__PURE__ */ jsx(Checkbox.Group, { style: { width: "100%" }, value: internalValue, disabled: readonly, children: /* @__PURE__ */ jsx(Row, { gutter: [10, 10], style: { width: "100%" }, children: item.permissions.map((permission) => /* @__PURE__ */ jsx(Col, { span: 6, children: /* @__PURE__ */ jsx(
2247
+ children: /* @__PURE__ */ jsx(Checkbox.Group, { style: { width: "100%" }, value: internalValue, disabled: readonly, children: /* @__PURE__ */ jsx(Row, { gutter: [10, 10], style: { width: "100%" }, children: item.permissions?.map((permission) => /* @__PURE__ */ jsx(Col, { span: 6, children: /* @__PURE__ */ jsx(
2248
2248
  Checkbox,
2249
2249
  {
2250
2250
  value: permission.value,