request 处理errcode

feature/price_manager
Lei OT 1 year ago
parent 41a9c2a590
commit 045eec2566

@ -83,6 +83,7 @@ export function fetchJSON(url, data = {}) {
} }
}).then(checkStatus) }).then(checkStatus)
.then(response => response.json()) .then(response => response.json())
.then(checkBizCode)
.catch(error => { .catch(error => {
throw error; throw error;
}); });

Loading…
Cancel
Save