react-toolkits 2.13.13 → 2.13.15

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,17 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.13.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 6012610: fix: data should be refresh
8
+
9
+ ## 2.13.14
10
+
11
+ ### Patch Changes
12
+
13
+ - 4149042: beta
14
+
3
15
  ## 2.13.13
4
16
 
5
17
  ### 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,
@@ -3213,7 +3213,6 @@ var InternalInfiniteList = (props, ref) => {
3213
3213
  try {
3214
3214
  await _form.validateFields();
3215
3215
  setIsValid(true);
3216
- setSize(1);
3217
3216
  mutate2();
3218
3217
  } catch (_) {
3219
3218
  setSize(0);
@@ -3227,7 +3226,7 @@ var InternalInfiniteList = (props, ref) => {
3227
3226
  try {
3228
3227
  _form.resetFields();
3229
3228
  await _form.validateFields({ validateOnly: true });
3230
- setSize(1);
3229
+ mutate2();
3231
3230
  } catch (error) {
3232
3231
  setSize(0);
3233
3232
  }