diff --git a/site/docs/extensions/axios.md b/site/docs/extensions/axios.md index e3c777a41191..d14b52213f96 100644 --- a/site/docs/extensions/axios.md +++ b/site/docs/extensions/axios.md @@ -8,6 +8,8 @@ Midway 内置了一个简单的 HTTP 请求客户端,无需引入三方包即 默认 Get 请求,返回数据为 Buffer。 +内置的 Http 客户端只提供最简单的能力,仅满足大部分的前端接口数据获取,如需复杂的功能,比如文件上传等,请使用其他的客户端,如 fetch,axios,got 等。 + ### 简单方法形式 @@ -99,12 +101,6 @@ try { } ``` -:::tip - -内置的 Http 客户端只提供最简单的能力,如需复杂的功能(前后拦截或是其他额外的配置),请使用 axios。 - -::: - ### 实例形式 diff --git a/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/axios.md b/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/axios.md index 8638937d421e..8efb0dca72df 100644 --- a/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/axios.md +++ b/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/axios.md @@ -8,6 +8,8 @@ Midway has a built-in simple HTTP request client, which can be used without intr The default Get request, and the returned data is Buffer. +The built-in Http client only provides the simplest capabilities and can only meet most of the front-end interface data acquisition needs. If you need complex functions, such as file upload, please use other clients, such as fetch, axios, got, etc. + ### Simple method form @@ -99,12 +101,6 @@ try { } ``` -:::tip - -The built-in Http client only provides the simplest capabilities. If you need complex functions (front and back interception or other additional configurations), please use axios. - -::: - ### Instance form