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 +6 -0
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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 ?
|
|
524
|
-
(
|
|
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(
|