remove oreo id from service
This commit is contained in:
@@ -39,22 +39,3 @@ export function getUrl(path: string): string {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get URL of Oreo backend
|
||||
* @param path Relative path to base url, begins with `/`
|
||||
* @returns Full url
|
||||
*
|
||||
* @example
|
||||
* // see example of `getUrl`
|
||||
*/
|
||||
export function getUrlOreo(path: string): string {
|
||||
const baseUrlOreo = process.env.TARO_APP_API_OREO;
|
||||
// console.log('buo:', baseUrlOreo);
|
||||
if (baseUrlOreo) {
|
||||
return baseUrlOreo + path;
|
||||
} else {
|
||||
console.log('env TARO_APP_API_OREO is undefined');
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user