Browse Source

request改回去

dongjh 3 months ago
parent
commit
d319f3fc31
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/utils/request.js

+ 3 - 3
src/utils/request.js

@@ -12,16 +12,16 @@ import { ACCESS_TOKEN, TENANT_ID } from "@/store/mutation-types"
  * @type {*|string}
  */
 // 这里不确定隐藏后是否有问题-待研究
-let apiBaseUrl = window._CONFIG['domianURL'];
+// let apiBaseUrl = window._CONFIG['domianURL'];
 // 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: apiBaseUrl, // api base_url
   // 部署修改
   // baseURL: process.env.VUE_APP_API_BASE_URL, // api base_url
-  // baseURL: process.env.VUE_APP_API_BASE_URL + '/jeecg-boot', // api base_url
+  baseURL: process.env.VUE_APP_API_BASE_URL + '/jeecg-boot', // api base_url
   timeout: 60000, // 请求超时时间
   withCredentials: true,
 })