|
@@ -1,13 +1,13 @@
|
|
|
import axios from 'axios'
|
|
|
import store from './store'
|
|
|
-// export const BASE_URL = 'https://api.xyyxt.net' //release
|
|
|
-export const BASE_URL = 'http://42.192.164.187:19005' //test
|
|
|
+export const BASE_URL = 'https://api.xyyxt.net' //release
|
|
|
+// export const BASE_URL = 'http://42.192.164.187:19005' //test
|
|
|
export const tenantId = '867735392558919680'
|
|
|
|
|
|
|
|
|
//图片上传api
|
|
|
-// export const BASE_IMG_URL = 'https://file.xyyxt.net/' //release
|
|
|
-export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/' //test
|
|
|
+export const BASE_IMG_URL = 'https://file.xyyxt.net/' //release
|
|
|
+// export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/' //test
|
|
|
|
|
|
import tools from './common/tools'
|
|
|
import router from './router'
|
|
@@ -35,6 +35,7 @@ const err = (error) => {
|
|
|
|
|
|
// request interceptor(请求拦截器)
|
|
|
request.interceptors.request.use(config => {
|
|
|
+ console.log(config,'config')
|
|
|
const token = tools.getToken()
|
|
|
if (token && !config.noToken) {
|
|
|
config.headers['AuthorizationToken'] = 'WX ' + token // 让每个请求携带自定义 token 请根据实际情况自行修改
|