dashboard/src/config.js

17 lines
318 B
JavaScript
Raw Normal View History

2025-06-09 14:59:40 +08:00
// API配置
const env = import.meta.env.MODE || 'development';
const config = {
development: {
2025-08-14 13:50:37 +08:00
apiBaseUrl: 'http://192.168.5.102:48080',
2025-06-09 14:59:40 +08:00
},
production: {
2025-08-12 16:55:26 +08:00
apiBaseUrl: 'http://36.103.199.218:48088',
2025-06-09 14:59:40 +08:00
}
};
export const getApiBaseUrl = () => {
return config[env].apiBaseUrl;
};
export default config;