xieb
2025-01-15 defab7c7a344f00c459a29d700ce8401caa64aca
遥控器上云
2 files modified
5 ■■■■■ changed files
src/pages/page-pilot/pilot-home.vue 3 ●●●● patch | view | raw | blame | history
src/pages/page-pilot/pilot-index.vue 2 ●●● patch | view | raw | blame | history
src/pages/page-pilot/pilot-home.vue
@@ -311,7 +311,8 @@
    // 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
src/pages/page-pilot/pilot-index.vue
@@ -97,7 +97,7 @@
  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