1
2
3
4
5
6
7
8
9
10
11
|
| import fetch from './request'
|
| const createRequest = (options, needLogin?: boolean) => {
| const { payload, url, autoLogin, showToast, skipException, method = 'POST' } = options
| return fetch({
| url, payload, method, autoLogin, showToast, skipException
| }, needLogin)
| }
|
| export default createRequest
|
|