zhengyiming
3 天以前 bd7dd96c732ded6854d47bf77f65e5c64d3d15e2
apps/taro/src/utils/request/index.ts
@@ -49,7 +49,7 @@
  REDIRECT = 9,
}
// 与后端约定的响应数据格式
interface ResponseStructure {
export interface ResponseStructure {
  success: boolean;
  data: any;
  /**
@@ -94,7 +94,7 @@
  withCredentials: true,
};
const config: RequestConfig<ResponseStructure, IRequestOptions> = {
export const config: RequestConfig<ResponseStructure, IRequestOptions> = {
  ...AxiosOptions,
  errorConfig: {