import Axios from 'axios'
import { Message, Spin } from 'view-design'
import i18n from './../locale'
import qs from 'qs'
// import { getUser } from '@/libs/util'const conf = {headers: {'Content-Type': 'application/json; charset=utf-8'},// 连接时间40秒timeout: 40000,baseURL: process.env.BASE_URL
}
const instance = Axios.create(conf)
instance.interceptors.request.use(config => {
/* if (!config.url.includes('/api/login')) {const user = getUser()if (user && user.token) {config.headers.Authorization = 'Bearer ' + user.token}} */return config
})
ajax超时,修改timeout 即可