init project
This commit is contained in:
17
miniprogram/config/index.ts
Normal file
17
miniprogram/config/index.ts
Normal file
@ -0,0 +1,17 @@
|
||||
const envArgs = {
|
||||
develop: {
|
||||
url: "http://localhost:8091"
|
||||
},
|
||||
trial: {
|
||||
url: "https://api.imyeyu.com"
|
||||
},
|
||||
release: {
|
||||
url: "https://api.imyeyu.com"
|
||||
}
|
||||
}
|
||||
|
||||
const env = wx.getAccountInfoSync().miniProgram.envVersion;
|
||||
|
||||
export default {
|
||||
...envArgs[env]
|
||||
}
|
||||
Reference in New Issue
Block a user