fix: base url setting

This commit is contained in:
2024-11-03 01:58:24 +08:00
parent cfa9cabb4b
commit f51a304b81
2 changed files with 3 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ export const getBaseURL = () => {
return baseURL;
};
export const query = new Query({
url: `${baseURL}/api/router`,
url: `${getBaseURL()}/api/router`,
});
query.beforeRequest = async (config) => {