From c9fefe8ab33391422e6de8caeebf9544061863ac Mon Sep 17 00:00:00 2001 From: Josper Date: Tue, 7 May 2024 19:36:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20perf=20docs=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide/advance/set-default-headers.md | 2 +- docs/reference/interface-service.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/advance/set-default-headers.md b/docs/guide/advance/set-default-headers.md index 417e02d..2d6adb3 100644 --- a/docs/guide/advance/set-default-headers.md +++ b/docs/guide/advance/set-default-headers.md @@ -14,7 +14,7 @@ const http = new HttpService([ const { method, headers } = ctx.request // 如果是post请求 if (method === 'POST') { - const key = 'Content-Type' // app 安卓端 jsbridge 只认这个headers key,用这个保险 + const key = 'Content-Type' ctx.request.headers = { // assign ...(headers || {}), diff --git a/docs/reference/interface-service.md b/docs/reference/interface-service.md index f767a9d..27e9570 100644 --- a/docs/reference/interface-service.md +++ b/docs/reference/interface-service.md @@ -42,7 +42,7 @@ httpSvc.request(fetchConfig) interface IFetchConfig { url: string /** - * base URL(host) like '//api.bilibili.com' + * base URL(host) like '//api.domain.com' */ baseURL?: FetchBaseURL /**