|
@@ -3,11 +3,9 @@ import axios from 'axios'
|
|
import { Message } from 'element-ui'
|
|
import { Message } from 'element-ui'
|
|
import store from '../store/index'
|
|
import store from '../store/index'
|
|
import { getToken } from '@/utils/auth'
|
|
import { getToken } from '@/utils/auth'
|
|
-import { envDomain } from '@/utils/.env.domain'
|
|
|
|
|
|
|
|
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
|
|
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
|
|
-
|
|
|
|
-axios.defaults.baseURL = (process.env.VUE_APP_ISPROXY * 1 ? '' : envDomain.API_DOMAIN) + '/api'
|
|
|
|
|
|
+axios.defaults.baseURL = (process.env.VUE_APP_ISPROXY * 1 ? '' : '') + '/api'
|
|
axios.defaults.timeout = 20000
|
|
axios.defaults.timeout = 20000
|
|
|
|
|
|
axios.interceptors.request.use(config => {
|
|
axios.interceptors.request.use(config => {
|