Commit b62bacd785c6516719114e52ca31a2b9d8c4ba37

Authored by zhangdaiscott
1 parent f451f555

JeecgBoot 2.4 微服务正式版本发布,基于SpringBoot的低代码平台

ant-design-vue-jeecg/src/utils/request.js
... ... @@ -11,9 +11,12 @@ import { ACCESS_TOKEN, TENANT_ID } from "@/store/mutation-types"
11 11 * 则映射后端域名,通过 vue.config.js
12 12 * @type {*|string}
13 13 */
  14 +let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot";
  15 +//console.log("apiBaseUrl= ",apiBaseUrl)
14 16 // 创建 axios 实例
15 17 const service = axios.create({
16   - baseURL: '/jeecg-boot',
  18 + //baseURL: '/jeecg-boot',
  19 + baseURL: apiBaseUrl, // api base_url
17 20 timeout: 9000 // 请求超时时间
18 21 })
19 22  
... ... @@ -167,6 +170,4 @@ function blobToJson(data) {
167 170 export {
168 171 installer as VueAxios,
169 172 service as axios
170   -}
171   -
172   -service
173 173 \ No newline at end of file
  174 +}
174 175 \ No newline at end of file
... ...