feat:参照研听的基础工程
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class AppConfig {
|
||||
const AppConfig({required this.apiBaseUrl});
|
||||
final String apiBaseUrl;
|
||||
factory AppConfig.fromEnvironment() {
|
||||
const url = String.fromEnvironment(
|
||||
'JINZHI_API_BASE_URL',
|
||||
defaultValue: 'https://jinzhi.api.local',
|
||||
);
|
||||
return const AppConfig(apiBaseUrl: url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user