zjk
2026-07-29 429208957f30ab9eedc5533a81aaa284048d09f5
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