JeecgBoot 2.4 微服务正式版本发布,基于SpringBoot的低代码平台
This commit is contained in:
@@ -11,9 +11,12 @@ import { ACCESS_TOKEN, TENANT_ID } from "@/store/mutation-types"
|
|||||||
* 则映射后端域名,通过 vue.config.js
|
* 则映射后端域名,通过 vue.config.js
|
||||||
* @type {*|string}
|
* @type {*|string}
|
||||||
*/
|
*/
|
||||||
|
let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot";
|
||||||
|
//console.log("apiBaseUrl= ",apiBaseUrl)
|
||||||
// 创建 axios 实例
|
// 创建 axios 实例
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: '/jeecg-boot',
|
//baseURL: '/jeecg-boot',
|
||||||
|
baseURL: apiBaseUrl, // api base_url
|
||||||
timeout: 9000 // 请求超时时间
|
timeout: 9000 // 请求超时时间
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -167,6 +170,4 @@ function blobToJson(data) {
|
|||||||
export {
|
export {
|
||||||
installer as VueAxios,
|
installer as VueAxios,
|
||||||
service as axios
|
service as axios
|
||||||
}
|
}
|
||||||
|
|
||||||
service
|
|
||||||
Reference in New Issue
Block a user