|
@@ -7,7 +7,8 @@ import config from '@/store/module/config'
|
|
|
let refreshing = false
|
|
|
let isProduction = process.env.NODE_ENV == 'development' ? false : true
|
|
|
axios.defaults.timeout = 30000 // 设置超时时长
|
|
|
-axios.defaults.baseURL = isProduction ? '' : 'https://localhost:5001'
|
|
|
+// axios.defaults.baseURL = isProduction ? '' : 'https://localhost:5001'
|
|
|
+axios.defaults.baseURL = ''
|
|
|
|
|
|
|
|
|
// http request 拦截器
|
|
@@ -192,7 +193,7 @@ export function post(url, params) {
|
|
|
data.params = params
|
|
|
data.lang = localStorage.getItem('local')
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- axios.post(url, data)
|
|
|
+ axios.post(url, params)
|
|
|
.then(response => {
|
|
|
if (response && response.data) {
|
|
|
resolve(response.data)
|