| | |
| | | let loadingInstance |
| | | let loadingStatus = false |
| | | if (process.env.NODE_ENV == 'development') { |
| | | axios.defaults.baseURL = 'http://localhost:5000/'; |
| | | // axios.defaults.baseURL = 'http://192.168.20.251:5000/'; |
| | | // axios.defaults.baseURL = 'http://localhost:5000/'; |
| | | axios.defaults.baseURL = 'http://192.168.20.253:5000/'; |
| | | } |
| | | else if (process.env.NODE_ENV == 'debug') { |
| | | axios.defaults.baseURL = 'http://127.0.0.1:9991/'; |
| | | axios.defaults.baseURL = 'http://192.168.20.253:5000/'; |
| | | } |
| | | else if (process.env.NODE_ENV == 'production') { |
| | | // axios.defaults.baseURL = 'http://127.0.0.1:5000/'; |
| | |
| | | function getToken() { |
| | | return store.getters.getToken() |
| | | } |
| | | |
| | | export function Getproductionvolume (data) { |
| | | return axios.post('/api/Task/GetTimeoutgetPageData', data)//返回的时promies对象,所以直接return出去就好了 |
| | | } |
| | | export function GetproductionstatisticsgetPageData (data) { |
| | | return axios.post('/api/Task/GetproductionstatisticsgetPageData', data)//返回的时promies对象,所以直接return出去就好了 |
| | | } |
| | | /* |
| | | url |
| | | params请求后台的参数,如:{name:123,values:['a','b','c']} |