|
@@ -9,8 +9,8 @@ import {
|
|
refreshToken
|
|
refreshToken
|
|
} from '@/api/login'
|
|
} from '@/api/login'
|
|
// 创建 axios 实例
|
|
// 创建 axios 实例
|
|
-// const Url = "https://coldlogistics.coldbaozhida.com/Cold_Logistic"
|
|
|
|
-const Url = "http://coldlogisticstest.coldbaozhida.com/Cold_Logistic" //测试
|
|
|
|
|
|
+const Url = "https://coldlogistics.coldbaozhida.com/Cold_Logistic"
|
|
|
|
+// const Url = "http://coldlogisticstest.coldbaozhida.com/Cold_Logistic" //测试
|
|
const request = axios.create({
|
|
const request = axios.create({
|
|
// API 请求的默认前缀
|
|
// API 请求的默认前缀
|
|
baseURL: process.env.NODE_ENV === 'production' ? Url : '/api',
|
|
baseURL: process.env.NODE_ENV === 'production' ? Url : '/api',
|