react-toolkits 2.13.11 → 2.13.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.13.13
4
+
5
+ ### Patch Changes
6
+
7
+ - d0a9815: chore: remove useless headers
8
+
9
+ ## 2.13.12
10
+
11
+ ### Patch Changes
12
+
13
+ - 0b98376: fix: axios url not right
14
+
3
15
  ## 2.13.11
4
16
 
5
17
  ### Patch Changes
package/lib/index.js CHANGED
@@ -521,7 +521,7 @@ function useMenuList() {
521
521
  const { signInPath, axios: axios2 } = useToolkitsStore((s) => s);
522
522
  return useSWR5(
523
523
  window.location.pathname !== signInPath ? "/api/usystem/menu/navbar" : null,
524
- ([url4]) => axios2(url4).then((response) => response.data.data)
524
+ (url4) => axios2(url4).then((response) => response.data.data)
525
525
  );
526
526
  }
527
527
  var usePermissions, usePermission;
@@ -557,18 +557,14 @@ var init_hooks2 = __esm({
557
557
  var useGames, useFindGame;
558
558
  var init_hooks3 = __esm({
559
559
  "src/components/layout/hooks.ts"() {
560
- init_constants();
561
560
  init_toolkitsProvider();
562
561
  useGames = () => {
563
- const { axios: axios2, gameApiV2, token } = useToolkitsStore((s) => s);
562
+ const { axios: axios2, gameApiV2 } = useToolkitsStore((s) => s);
564
563
  return useSWR5("/api/game/list", async () => {
565
- const headers = new AxiosHeaders({ [APP_ID_HEADER]: "global", Authorization: `Bearer ${token}` });
566
564
  const games = gameApiV2 ? await axios2({
567
- url: "/api/game/list",
568
- headers
565
+ url: "/api/game/list"
569
566
  }).then((response) => response.data.data.list ?? []) : await axios2({
570
- url: "/api/usystem/game/all",
571
- headers
567
+ url: "/api/usystem/game/all"
572
568
  }).then((response) => response.data.data ?? []);
573
569
  return games;
574
570
  });