🔧 build: 修改ip

This commit is contained in:
wangsongsole 2023-03-29 10:16:39 +08:00
parent 2bee24ff76
commit 5408190f76
2 changed files with 3 additions and 1 deletions

View File

@ -9,11 +9,13 @@ if (process.env.NODE_ENV == 'test' || process.env.NODE_ENV == 'development') {
// 测试环境
baseurl = 'http://192.168.6.75';
window.baseurl = 'http://192.168.6.75';
window.unifiedUrl = 'http://test.user.1688sup.com/#/login'; /* 统一登录地址 */
}
if (process.env.NODE_ENV == 'production') {
// 生成环境
baseurl = 'https://marketapi.1688sup.com';
window.baseurl = 'https://marketapi.1688sup.com';
window.unifiedUrl = 'https://user.1688sup.com/#/login'; /* 统一登录地址 */
}
const upload = (method, url, params, responseType) => {
let obj = {

View File

@ -30,7 +30,7 @@ export default class App extends Component {
/* 跳转统一登录平台 */
toUnifiedLogin() {
setTimeout(() => {
window.location.href = `http://test.user.1688sup.com/#/login?url=${encodeURIComponent(
window.location.href = `${window.unifiedUrl}?url=${encodeURIComponent(
window.location.href
)}`;
}, 1500);