react-toolkits 2.13.19 → 2.13.20

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.20
4
+
5
+ ### Patch Changes
6
+
7
+ - 4e7f741: fix: menu list app-id header should not be global
8
+
3
9
  ## 2.13.19
4
10
 
5
11
  ### Patch Changes
package/lib/index.js CHANGED
@@ -520,14 +520,15 @@ var init_highlight = __esm({
520
520
  function useMenuList() {
521
521
  const { signInPath, axios: axios2, gameId } = useToolkitsStore((s) => s);
522
522
  return useSWR5(
523
- window.location.pathname !== signInPath ? ["/api/usystem/menu/navbar", gameId] : null,
524
- ([url4]) => axios2(url4).then((response) => response.data.data)
523
+ window.location.pathname !== signInPath ? { url: "/api/usystem/menu/navbar", headers: { [APP_ID_HEADER]: gameId } } : null,
524
+ ({ url: url4, headers }) => axios2(url4, { headers }).then((response) => response.data.data)
525
525
  );
526
526
  }
527
527
  var usePermissions, usePermission;
528
528
  var init_hooks2 = __esm({
529
529
  "src/hooks/index.ts"() {
530
530
  init_toolkitsProvider();
531
+ init_constants();
531
532
  usePermissions = (codes = [], config) => {
532
533
  const { axios: axios2, permissionVersion } = useToolkitsStore((s) => s);
533
534
  const { data, ...rest } = useSWR5(