修改接口

This commit is contained in:
范强强
2024-03-12 11:09:54 +08:00
parent a244ea27e1
commit 0773d4ab11
7 changed files with 21 additions and 19 deletions
+3 -3
View File
@@ -8,15 +8,15 @@ import { Modal } from 'ant-design-vue'
/**
* 【指定 axios的 baseURL】
* 如果手工指定 baseURL: '/laws-sinotruk'
* 如果手工指定 baseURL: '/byd-structuredplugins-serve '
* 则映射后端域名,通过 vue.config.js
* @type {*|string}
*/
const apiBaseUrl = window._CONFIG.domianURL || '/laws-sinotruk'
const apiBaseUrl = window._CONFIG.domianURL || '/byd-structuredplugins-serve '
// console.log("apiBaseUrl= ",apiBaseUrl)
// 创建 axios 实例
const service = axios.create({
// baseURL: '/laws-sinotruk',
// baseURL: '/byd-structuredplugins-serve ',
baseURL: apiBaseUrl, // api base_url
timeout: 30 * 60 * 1000 // 请求超时时间
})