Fix hub url string (#11)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "fix hub url",
|
||||
"packageName": "@zhishuyun/hub",
|
||||
"email": "cqc@cuiqingcai.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user