代合合并
This commit is contained in:
@@ -32,11 +32,17 @@ uni.conf = {
|
||||
baseUrlwws,
|
||||
};
|
||||
|
||||
console.log('uni.conf',uni.conf)
|
||||
|
||||
export const changeEnv = (env) => {
|
||||
if (env === "test") {
|
||||
let baseUrl = "http://192.168.1.42"
|
||||
// #ifdef H5
|
||||
baseUrl = "/api"
|
||||
// #endif
|
||||
uni.conf = {
|
||||
debug: true,
|
||||
baseUrl: "http://192.168.1.42",
|
||||
baseUrl,
|
||||
phpUrl: 'http://192.168.1.42:8787/api/',
|
||||
phpChatWx: 'ws://192.168.1.42:2348',
|
||||
version: 100,
|
||||
|
||||
Reference in New Issue
Block a user