This commit is contained in:
2025-11-18 01:30:57 +08:00
parent 388705b646
commit 6d32fedfb0
10 changed files with 126 additions and 51 deletions

View File

@@ -5,18 +5,6 @@ const config = getConfig();
export const baseURL = config?.baseURL || 'https://kevisual.cn';
export { storage };
export const getBaseURL = () => {
if (typeof config?.dev === 'undefined') {
return baseURL;
}
if (typeof config?.dev === 'string') {
if (config?.dev === 'true') {
return 'http://localhost:4002';
}
return baseURL;
}
if (config?.dev === true) {
return 'http://localhost:4002';
}
return baseURL;
};
export const query = new Query({