Fix hub url string (#11)

This commit is contained in:
AceDataCloud
2024-01-02 01:33:33 +08:00
parent 920c57ab48
commit de36a04963
2 changed files with 8 additions and 1 deletions
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix hub url",
"packageName": "@zhishuyun/hub",
"email": "cqc@cuiqingcai.com",
"dependentChangeType": "patch"
}
+1 -1
View File
@@ -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;
};
/**