@@ -14,6 +14,7 @@
"dev": {
"title": "小程序-开发环境",
"env": {
+ "ENV_TYPE": "dev",
"UNI_PLATFORM": "mp-weixin",
"NAME": "dev",
"TOKEN_KEY": "token",
@@ -26,6 +27,7 @@
"text": {
"title": "小程序-测试环境",
+ "ENV_TYPE": "test",
"NAME": "test",
@@ -38,6 +40,7 @@
"prod": {
"title": "小程序-生产环境",
+ "ENV_TYPE": "prod",
"NAME": "prod",
@@ -68,7 +68,7 @@ class Request {
if (process.env.NODE_ENV !== 'development') {
console.log("请求地址:" + this.url, this.data)
}
-
+
weixin.request({
url: this.url,
method: this.method,
@@ -206,4 +206,4 @@ export const upload = (url) => (params) => {
})
-}
+}