import http from '@/services/http.interceptor.js'
// 引入拦截器

export default (options = {}) => {
    return http.request({
        method: options.method || 'GET', // 请求方法必须大写 [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE]
        url: options.url,
        data: options.data,
        params: options.params,
        custom: {
            loading: options.loading
        }
    })
}
