|
@@ -1,20 +1,22 @@
|
|
|
/**
|
|
|
* 配置通用
|
|
|
*/
|
|
|
-// const node_dev = process.env.H_NODE_ENV;
|
|
|
-// //运行到浏览器用的
|
|
|
-// let baseUrl='/api';
|
|
|
-// let upFileUrl='/api';
|
|
|
-// //打包用的
|
|
|
-// if (node_dev) {
|
|
|
-// baseUrl = process.env.H_BASE_URL;
|
|
|
-// upFileUrl = process.env.H_UP_FILE_URL
|
|
|
-// }
|
|
|
-
|
|
|
-//64
|
|
|
+const node_dev = process.env.H_NODE_ENV;
|
|
|
+//运行到浏览器用的
|
|
|
let baseUrl='https://xusfoodapi.hw.hongweisoft.com/appapi/app';
|
|
|
-let upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
|
|
|
+let upFileUrl='https://xusfoodapi.hw.hongweisoft.com/appapi/app';
|
|
|
let staticUrl='http://res.hw.hongweisoft.com/xushuo/';
|
|
|
+//打包用的
|
|
|
+if (node_dev) {
|
|
|
+ baseUrl = process.env.H_BASE_URL;
|
|
|
+ upFileUrl = process.env.H_UP_FILE_URL;
|
|
|
+ staticUrl = process.env.H_STATIC_FILE_URL;
|
|
|
+}
|
|
|
+
|
|
|
+//64
|
|
|
+// let baseUrl='https://xusfoodapi.hw.hongweisoft.com/appapi/app';
|
|
|
+// let upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
|
|
|
+// let staticUrl='http://res.hw.hongweisoft.com/xushuo/';
|
|
|
|
|
|
//正式
|
|
|
// let baseUrl='https://xusapi.gzxsjt.cn/appapi/app';
|