| | |
| | | |
| | | // ws |
| | | const wsParam: WsParam = components.get(EComponentName.Ws) |
| | | wsParam.token = apiPilot.getToken() |
| | | wsParam.token = apiPilot.getToken().replace('bearer ', '') |
| | | console.log('token:' + wsParam.token) |
| | | apiPilot.loadComponent(EComponentName.Ws, components.get(EComponentName.Ws)) |
| | | |
| | | // map |
| | |
| | | if (token) { |
| | | await refreshToken({}) |
| | | .then(res => { |
| | | console.log('e' + CURRENT_CONFIG.baseURL) |
| | | console.log('e:' + CURRENT_CONFIG.baseURL) |
| | | apiPilot.setComponentParam(EComponentName.Api, { |
| | | host: CURRENT_CONFIG.baseURL, |
| | | token: res.data.access_token |