mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-20 19:04:17 +08:00
Fix baseUrl may not contain origin on web
This commit is contained in:
@@ -89,7 +89,7 @@ bool tryInitApi(BuildContext context) {
|
||||
if (_api != null) {
|
||||
return true;
|
||||
}
|
||||
initApi("/api");
|
||||
initApi("${Uri.base.origin}/api");
|
||||
clearAllStates(context);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user