12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- const node_dev = process.env.H_NODE_ENV;
- let baseUrl = null
- let upFileUrl= null
- let staticUrl= null
- baseUrl='https://greatadmin.dev.gztjy.top/serviceapi';
- upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
- staticUrl='https://miniores.hw.hongweisoft.com/greattransition/staticfile';
- baseUrl='/api';
- upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
- staticUrl='https://greath5.dev.gztjy.top/distribution/static/';
- if (node_dev =='development') {
-
- baseUrl='';
- upFileUrl='';
- staticUrl='';
-
-
- baseUrl='https://greath5.dev.gztjy.top/serviceapi';
- upFileUrl='h';
- staticUrl='https://greath5.dev.gztjy.top/distribution/static/';
-
- }
- if (node_dev =='production') {
-
- baseUrl='';
- upFileUrl='';
- staticUrl='';
-
-
- baseUrl='https://h5.wdzzgs.com/serviceapi';
- upFileUrl='';
- staticUrl='https://h5.wdzzgs.com/distribution/static/';
-
- }
- const commonConfig = {
- wxAppid: '',
- appid: 'wx6490eaa0d20d2be2',
- redirectUri: encodeURIComponent('https://h5.wdzzgs.com/distribution/pages/login/index'),
- baseUrl: baseUrl,
- uploadFileUrl: upFileUrl,
- staticUrl:staticUrl,
- paginationConfig:{
- pageNum: 1,
- pageSize: 10
- },
- successCode:200,
- }
- export {
- commonConfig
- }
|