diff --git a/src/assets/api.js b/src/assets/api.js index d54e230d..c078ba7d 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -4,10 +4,12 @@ window.baseurl = 'https://marketapi.1688sup.com'; let baseurl; if (process.env.NODE_ENV == "test"||process.env.NODE_ENV == "development") { // 测试环境 - baseurl = "http://192.168.6.75" + baseurl = "http://192.168.6.75" + window.baseurl = 'http://192.168.6.75'; } if (process.env.NODE_ENV == "production") { // 生成环境 - baseurl = "https://marketapi.1688sup.com" + baseurl = "https://marketapi.1688sup.com" + }