update 更改queue接口的名称

This commit is contained in:
2021-04-28 16:24:45 +08:00
parent f6c294b12e
commit aac183749b
11 changed files with 20 additions and 20 deletions

View File

@@ -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) {