axios get请求返回问号

WeChat84992563228f79717b2ea1a9e610df07.png

响应头的content-type为

content-type:text/plain;charset=utf-8

代码是这样的

  trackTransStatus: (uploadId: string) =>
    Axios.get<TranscodeResponse>(
      `/dtres/zhuanma/${uploadId}/jindu/${new Date().getTime()}`,
      { responseType: 'text' }
    )

设置了responseType为text还是没用

直接用fetch请求就可以得到中文

待解决 悬赏分:60 - 离问题结束还有 87天13小时44分8秒
反对 0举报 0 收藏 0

我来回答

回答1