/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-07-22 17:13:10
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-07-25 10:23:41
 * @FilePath: \caiyang\src\util\request.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import  config  from "./config.js"
import axios from "axios"
export const request = (options)=>{
	return axios({
		url: config.baseUrl + options.url,
		data: options.data || {},
		method: options.method || 'GET'
	})
}
// 将对象导出外部引入使用
export default {
	request
}