添加本地测试编译接口地址

This commit is contained in:
red-deng-deng 2021-12-07 13:51:23 +08:00
parent c6a37e069e
commit 7c82894b0d
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -3,7 +3,7 @@ import {Notify} from "zent"
window.baseurl = 'https://marketapi.1688sup.com';
let baseurl;
if (process.env.NODE_ENV == "test") { // 测试环境
if (process.env.NODE_ENV == "test"||process.env.NODE_ENV == "development") { // 测试环境
baseurl = "http://192.168.6.75"
}
if (process.env.NODE_ENV == "production") { // 生成环境