DESKTOP-2IO5MST\huting 2 years ago
parent
commit
2a0f4e51ea
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      utils/network/request.js

+ 2
- 2
utils/network/request.js View File

if (options.baseUrl) { if (options.baseUrl) {
options.url = options.baseUrl options.url = options.baseUrl
} }
//默认json数据格式提交
//默认json数据格式提交`
let contentType = 'application/x-www-form-urlencoded' let contentType = 'application/x-www-form-urlencoded'
//根据type判断数据传输格式 //根据type判断数据传输格式
if (options.type && options.type === 2) { if (options.type && options.type === 2) {
} }
} }
}); });
}else {
} else {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: res.data.errorMsg, content: res.data.errorMsg,

Loading…
Cancel
Save