修改接口
This commit is contained in:
@@ -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 // 请求超时时间
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user