remove oreo id from service
parent
133d60375a
commit
c756e74778
3
.env.dev
3
.env.dev
|
|
@ -1,4 +1,3 @@
|
|||
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
|
||||
TARO_APP_ID="wx636eb7cf2b84f305"
|
||||
TARO_APP_API="http://127.0.0.1:9527"
|
||||
TARO_APP_API_OREO="http://127.0.0.1:9527"
|
||||
TARO_APP_API="http://127.0.0.1:9527"
|
||||
|
|
@ -1,3 +1,2 @@
|
|||
TARO_APP_ID="wx636eb7cf2b84f305"
|
||||
TARO_APP_API=""
|
||||
TARO_APP_API_OREO=""
|
||||
TARO_APP_API=""
|
||||
|
|
@ -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 '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue