修改打包配置

This commit is contained in:
BianLzhaoMin 2024-12-13 13:43:18 +08:00
parent 8890e61eb6
commit 2b4bfdd039
2 changed files with 3 additions and 3 deletions

View File

@ -6,5 +6,5 @@ module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
//post用当前域名 //post用当前域名
// API_ROOT: '"http://' + testUrl + '/iot"' // API_ROOT: '"http://' + testUrl + '/iot"'
// API_ROOT: '/', API_ROOT: '"/dev/api"',
} }

View File

@ -5,9 +5,9 @@ import axios from 'axios'
axios.defaults.timeout = 30000 axios.defaults.timeout = 30000
// 默认配置 // 默认配置
// axios.defaults.baseURL = process.env.API_ROOT; axios.defaults.baseURL = process.env.API_ROOT
// axios.defaults.baseURL = 'http://192.168.0.56:21627/bigScreen' // axios.defaults.baseURL = 'http://192.168.0.56:21627/bigScreen'
axios.defaults.baseURL = 'screen' // axios.defaults.baseURL = 'screen'
// axios.defaults.baseURL = 'http://localhost:8080/screen' // axios.defaults.baseURL = 'http://localhost:8080/screen'
axios.interceptors.request.use( axios.interceptors.request.use(