upddate
This commit is contained in:
parent
89a3fb6b0e
commit
896123b3a2
@ -2,7 +2,8 @@ import axios from 'axios'
|
||||
|
||||
// 根据环境变量确定基础URL
|
||||
const getBaseURL = () => {
|
||||
const appEnv = import.meta.env.VUE_APP_ENV || 'local'
|
||||
// 从环境变量 APP_ENV 获取当前的环境
|
||||
const appEnv = process.env.APP_ENV || 'local'
|
||||
switch (appEnv) {
|
||||
case 'dev':
|
||||
return 'https://api-dev.beefast.co'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user