config static method

void config(
  1. BaseOptions options, {
  2. PQLogInterceptor? logInterceptor,
  3. bool enableLog = true,
})

配置Dio

Implementation

static void config(
  BaseOptions options, {
  PQLogInterceptor? logInterceptor,
  bool enableLog = true,
}) {
  _dio = Dio(options);
  if (logInterceptor != null) {
    PQNetwork.logInterceptor = logInterceptor;
  }
  PQNetwork.enableLog = enableLog;
}