Skip to content

Commit

Permalink
Fix hub url string (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
崔庆才丨静觅 authored Jan 1, 2024
1 parent 82c37f6 commit 04e38ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix hub url",
"packageName": "@zhishuyun/hub",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion src/utils/baseUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit 04e38ce

Please sign in to comment.