@giteeteam/apps-team-components 1.10.10 → 1.10.11

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/dist/lib/fetch.js CHANGED
@@ -42,6 +42,8 @@ const useGetServerGateway = () => {
42
42
  return (publicRuntimeConfig === null || publicRuntimeConfig === void 0 ? void 0 : publicRuntimeConfig.gateway) || '';
43
43
  };
44
44
  const useGetGateway = (extraPath = '') => {
45
+ const { publicRuntimeConfig } = useContext(TeamConfigContext);
46
+ const { routePath } = publicRuntimeConfig;
45
47
  const gateway = useGetServerGateway();
46
48
  const result = useMemo(() => {
47
49
  const inOne = isInOne(gateway);
@@ -49,8 +51,10 @@ const useGetGateway = (extraPath = '') => {
49
51
  return inOne ? '' : extraPath;
50
52
  if (inOne)
51
53
  return gateway;
54
+ if (routePath)
55
+ return gateway;
52
56
  return extraPath;
53
- }, [extraPath, gateway]);
57
+ }, [extraPath, gateway, routePath]);
54
58
  return result;
55
59
  };
56
60
  function useGetRequestConfig({ sessionToken, tenant, Cookie }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.10.10",
3
+ "version": "1.10.11",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",