添加环境判断
diff --git a/static/js/config.js b/static/js/config.js
new file mode 100644
index 0000000..e6285be
--- /dev/null
+++ b/static/js/config.js
@@ -0,0 +1,22 @@
+let config = {}
+
+if (process.env.NODE_ENV === 'development') {
+ // 开发环境
+ config = {
+ // #ifdef H5
+ base_api: "/api", //测试地址
+ // #endif
+ // base_api: "http://172.28.43.20:8089/portal/mobileapi",//本地地址
+ // #ifndef H5
+ base_api: 'http://yy.dlsmk.cn:8080/portal/mobileapi',
+ // #endif
+ }
+
+} else {
+ // 生产环境
+ config = {
+ base_api: 'https://yy.dlsmk.cn/portal/mobileapi'
+ }
+}
+
+export default config