验证码独立测试和开发接口

This commit is contained in:
red-deng-deng 2021-12-08 11:39:56 +08:00
parent ac7f379dcc
commit 8b96923a32
1 changed files with 4 additions and 2 deletions

View File

@ -4,10 +4,12 @@ window.baseurl = 'https://marketapi.1688sup.com';
let baseurl; let baseurl;
if (process.env.NODE_ENV == "test"||process.env.NODE_ENV == "development") { // 测试环境 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") { // 生成环境 if (process.env.NODE_ENV == "production") { // 生成环境
baseurl = "https://marketapi.1688sup.com" baseurl = "https://marketapi.1688sup.com"
} }