fix: wx 请求不显示bug
This commit is contained in:
parent
d392710377
commit
44878e441c
@ -54,7 +54,9 @@ export const http = <T>(options: CustomRequestOptions) => {
|
|||||||
uni.request({
|
uni.request({
|
||||||
...options,
|
...options,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
// #ifndef MP-WEIXIN
|
||||||
responseType: 'json',
|
responseType: 'json',
|
||||||
|
// #endif
|
||||||
// 响应成功
|
// 响应成功
|
||||||
success(res) {
|
success(res) {
|
||||||
// 状态码 2xx,参考 axios 的设计
|
// 状态码 2xx,参考 axios 的设计
|
||||||
|
Loading…
x
Reference in New Issue
Block a user