charles
2024-04-29 c7f3fd5215399b37d0511b3bd555150ff1b13507
src/stores/devices.ts
@@ -25,11 +25,14 @@
    data: deviceRes,
    run: startDevicePolling,
    cancel: cancelDevicePolling
  } = useRequest(getDeviceList, {
    manual: true,
    pollingInterval: DEVICE_INFO_POLLING_DURATION,
    pollingWhenHidden: false
  })
  } = useRequest(
    getDeviceList
    //   {
    //   manual: true,
    //   pollingInterval: DEVICE_INFO_POLLING_DURATION,
    //   pollingWhenHidden: false
    // }
  )
  function startPollingDevice() {
    cancelDevicePolling()