mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-01 15:24:01 +00:00
login.js
This commit is contained in:
@@ -1,19 +1,5 @@
|
||||
const Ajax = require("robe-ajax")
|
||||
|
||||
function parseJSON(response) {
|
||||
return response.json()
|
||||
}
|
||||
|
||||
function checkStatus(response) {
|
||||
if (response.status >= 200 && response.status < 300) {
|
||||
return response
|
||||
}
|
||||
|
||||
const error = new Error(response.statusText)
|
||||
error.response = response
|
||||
throw error
|
||||
}
|
||||
|
||||
/**
|
||||
* Requests a URL, returning a promise.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user