diff --git a/change/@zhishuyun-hub-c6fb2f25-b777-465f-aab5-454814df2d3c.json b/change/@zhishuyun-hub-c6fb2f25-b777-465f-aab5-454814df2d3c.json new file mode 100644 index 00000000..700ab944 --- /dev/null +++ b/change/@zhishuyun-hub-c6fb2f25-b777-465f-aab5-454814df2d3c.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix hub url", + "packageName": "@zhishuyun/hub", + "email": "cqc@cuiqingcai.com", + "dependentChangeType": "patch" +} diff --git a/src/utils/baseUrl.ts b/src/utils/baseUrl.ts index e316d360..22b7cc7f 100644 --- a/src/utils/baseUrl.ts +++ b/src/utils/baseUrl.ts @@ -19,7 +19,7 @@ export const getBaseUrlHub = () => { if (import.meta.env.VITE_BASE_URL_HUB) { return import.meta.env.VITE_BASE_URL_HUB; } - return BASE_URL_HUB; + return window.location.origin || BASE_URL_HUB; }; /**