接口对接
This commit is contained in:
@@ -24,14 +24,16 @@ export default (options = {}) => {
|
||||
},
|
||||
header: {
|
||||
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
"Authorization":"12",
|
||||
...options.header
|
||||
},
|
||||
method: options.method || 'GET',
|
||||
success: async (res) => {
|
||||
console.log(res);
|
||||
if (arr.indexOf(options.url) > -1) {
|
||||
arr.splice(arr.indexOf(options.url), 1)
|
||||
}
|
||||
if (res.data.resultCode !== 10000) {
|
||||
if (res.data.resultCode !== 10000 && res.data.code !== 'A0000' ) {
|
||||
errHandler(res.data)
|
||||
reject(res.data)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user