liaolx
2026-01-28 bbf72a6aedaeaa21db0cd8c3300893bb386360f0
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