Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
base_data_channel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PublicSource
base_data_channel
Commits
8e416f72
Commit
8e416f72
authored
Apr 07, 2023
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dio
parent
7e9add2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
basedio.dart
lib/http/basedio.dart
+3
-1
baseurl_interceptor.dart
lib/http/baseurl_interceptor.dart
+0
-10
No files found.
lib/http/basedio.dart
View file @
8e416f72
...
...
@@ -7,7 +7,9 @@ import 'package:http_proxy/http_proxy.dart';
import
'package:pretty_dio_logger/pretty_dio_logger.dart'
;
import
'package:sp_util/sp_util.dart'
;
import
'baseurl_interceptor.dart'
;
import
'header_interceptor.dart'
;
class
BaseDio
{
BaseDio
.
_
();
...
...
lib/http/baseurl_interceptor.dart
deleted
100644 → 0
View file @
7e9add2c
import
'package:base_data_channel/http/qmai_host.dart'
;
import
'package:dio/dio.dart'
;
class
HeaderInterceptor
extends
Interceptor
{
@override
void
onRequest
(
RequestOptions
options
,
RequestInterceptorHandler
handler
)
{
options
.
baseUrl
=
QmaiHost
.
getBaseUrl
();
super
.
onRequest
(
options
,
handler
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment