update 更改queue接口的名称
This commit is contained in:
@@ -94,7 +94,7 @@ for (let key in urls) {
|
||||
}
|
||||
}
|
||||
|
||||
api[`${key}Wait`] = function (params = {}) {
|
||||
api[`${key}Await`] = function (params = {}) {
|
||||
if (method === 'post') {
|
||||
return initInstance(options).post(url, params)
|
||||
} else {
|
||||
@@ -106,7 +106,7 @@ for (let key in urls) {
|
||||
|
||||
api[key] = function (params = {}) {
|
||||
return new Promise((reslove, reject) => {
|
||||
api[`${key}Wait`](params)
|
||||
api[`${key}Await`](params)
|
||||
.then((res) => {
|
||||
const { data } = res
|
||||
if (errerCodes.indexOf(data.code) >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user