| | |
| | | let loadingInstance; |
| | | let loadingStatus = false; |
| | | if (process.env.NODE_ENV == 'development') { |
| | | axios.defaults.baseURL = 'http://localhost:9290/';//http://localhost:9290/ |
| | | // axios.defaults.baseURL = 'http://192.168.2.51:9290/'; |
| | | axios.defaults.baseURL = 'http://localhost:9290/'; |
| | | } |
| | | else if (process.env.NODE_ENV == 'debug') { |
| | | axios.defaults.baseURL = 'http://localhost:8098/'; |
| | | axios.defaults.baseURL = 'http://192.168.2.51:9290/'; |
| | | // axios.defaults.baseURL = 'http://localhost:9290/'; |
| | | } |
| | | |
| | | else if (process.env.NODE_ENV == 'production') { |
| | | axios.defaults.baseURL = 'http://localhost:9290/'; |
| | | axios.defaults.baseURL = 'http://192.168.2.51:9290/'; |
| | | // axios.defaults.baseURL = 'http://localhost:9290/'; |
| | | } |
| | | if (!axios.defaults.baseURL.endsWith('/')) { |
| | | axios.defaults.baseURL+="/"; |