This commit is contained in:
DESKTOP-VMMLSOQ\wangzg 2024-07-31 22:26:14 +08:00
parent 52e60f5d65
commit b11b73b2e6
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import Vue from 'vue'
axios.defaults.withcredentials =true axios.defaults.withcredentials =true
// create an axios instance // create an axios instance
const service = axios.create({ const service = axios.create({
baseURL: process.env.NODE_ENV === 'development' ? '' : 'http://101.43.201.20', // 所有异步请求都加上/api,nginx转发到后端Springboot baseURL: process.env.NODE_ENV === 'development' ? '' : 'http://101.43.201.20:5000', // 所有异步请求都加上/api,nginx转发到后端Springboot
timeout: 5000 // request timeout timeout: 5000 // request timeout
}) })