This commit is contained in:
aaron 2025-03-01 22:04:25 +08:00
parent 89a3fb6b0e
commit 896123b3a2

View File

@ -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'