|
@@ -7,16 +7,9 @@ import methods from '@/utils/methodsTool';
|
|
|
|
|
|
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
|
|
// 创建axios实例
|
|
|
-/**
|
|
|
- * @remard 线上地址
|
|
|
- */
|
|
|
-// export const baseURL = 'https://cloud.xyyxt.net/'
|
|
|
-// export const BASE_IMG_URL = 'https://file.xyyxt.net'
|
|
|
-/**
|
|
|
- * @remard 测试地址
|
|
|
- */
|
|
|
-export const baseURL = 'http://192.168.1.222:5030/'
|
|
|
-export const BASE_IMG_URL = 'https://file-dev.xyyxt.net'
|
|
|
+export const baseURL = process.env.VUE_APP_BASE_API
|
|
|
+// export const baseURL = 'http://192.168.1.24:5030/'
|
|
|
+export const BASE_IMG_URL = process.env.VUE_APP_IMG_API
|
|
|
const service = axios.create({
|
|
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
|
|
baseURL: baseURL,
|
|
@@ -119,4 +112,4 @@ service.interceptors.response.use(res => {
|
|
|
}
|
|
|
)
|
|
|
|
|
|
-export default service
|
|
|
+export default service
|