响应头的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请求就可以得到中文
后台使用的可能不是utf-8,需要转下码