Merge remote-tracking branch 'origin/Phase3' into Phase3
| | |
| | | line-height: 1; |
| | | -webkit-font-smoothing: antialiased; |
| | | -moz-osx-font-smoothing: grayscale; |
| | | &:before { |
| | | content: "\e910"; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | withCredentials: true |
| | | }); |
| | | |
| | | let apiNumber = 0; |
| | | |
| | | http.interceptors.request.use( |
| | | (config: AxiosRequestConfig) => { |
| | | apiNumber += 1; |
| | | loadingStart(); |
| | | addHttpHeader(config); |
| | | return config; |
| | |
| | | |
| | | http.interceptors.response.use( |
| | | (response: AxiosResponse) => { |
| | | loadingFinish(); |
| | | apiNumber -= 1; |
| | | if (apiNumber === 0) { |
| | | loadingFinish(); |
| | | } |
| | | return response; |
| | | }, |
| | | (error: AxiosError) => { |
| | | loadingFinish(); |
| | | apiNumber -= 1; |
| | | if (apiNumber === 0) { |
| | | loadingFinish(); |
| | | } |
| | | showErrorMessageBox(error) |
| | | return Promise.reject(error); |
| | | } |