xiaosi
1 year ago
1 changed files with 9 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||||
|
/** |
||||
|
* 接口地址列表 |
||||
|
*/ |
||||
|
|
||||
|
const { APP_DEVELOPMENT_BASE_URL, APP_PRODUCTION_BASE_URL, MODE } = import.meta.env; // 获取环境变量
|
||||
|
export const { [MODE]: BASE_URL = APP_DEVELOPMENT_BASE_URL } = { development: APP_DEVELOPMENT_BASE_URL, production: APP_PRODUCTION_BASE_URL }; // 声明变量 BASE_URL 并赋值
|
||||
|
|
||||
|
// 登录
|
||||
|
export const EXAMPLE_API = `${BASE_URL}xxxxxxxx`; |
Loading…
Reference in new issue