Skip to content

Commit d2437a2

Browse files
committed
timeout
1 parent e4a889f commit d2437a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/common/net/Api.dart‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ class HttpManager {
5353
option.headers = headers;
5454
}
5555

56+
///超时
57+
option.connectTimeout = 15000;
58+
5659
Dio dio = new Dio();
5760
Response response;
5861
try {

0 commit comments

Comments
 (0)