mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-28 11:24:50 +00:00
login.js
This commit is contained in:
@@ -56,11 +56,6 @@ npm i
|
||||
|
||||
开发:
|
||||
|
||||
```bash
|
||||
npm start # 使用dora-plugin-proxy产生代理服务器
|
||||
```
|
||||
或者
|
||||
|
||||
```bash
|
||||
npm run dev # 使用mock拦截请求,数据存储在localStroge里
|
||||
```
|
||||
|
||||
@@ -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