|
@@ -11,12 +11,13 @@ import { ACCESS_TOKEN, TENANT_ID } from "@/store/mutation-types"
|
|
|
* 则映射后端域名,通过 vue.config.js
|
|
|
* @type {*|string}
|
|
|
*/
|
|
|
-let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot";
|
|
|
+// 这里不确定隐藏后是否有问题-待研究
|
|
|
+// let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot";
|
|
|
//console.log("apiBaseUrl= ",apiBaseUrl)
|
|
|
// 创建 axios 实例
|
|
|
const service = axios.create({
|
|
|
//baseURL: '/jeecg-boot',
|
|
|
- baseURL: apiBaseUrl, // api base_url
|
|
|
+ baseURL: process.env.VUE_APP_API_BASE_URL + '/jeecg-boot', // api base_url
|
|
|
timeout: 60000, // 请求超时时间
|
|
|
withCredentials: true,
|
|
|
})
|