From a34c1293e82c0afacacecfc1fb850afe27b4873b Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期五, 03 十一月 2023 11:31:58 +0800
Subject: [PATCH] feat: 问题诊断列表弹窗对接接口数据,抽离轮询时间配置,添加设备切换按钮

---
 src/stores/devices.ts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/stores/devices.ts b/src/stores/devices.ts
index 4c74113..fb0fd53 100644
--- a/src/stores/devices.ts
+++ b/src/stores/devices.ts
@@ -3,6 +3,7 @@
 import { getDeviceList } from '@/api'
 import { useRequest } from 'vue-hooks-plus'
 import type { Devices } from '@/api/device'
+import { DEVICE_INFO_POLLING_DURATION } from '@/common/constants'
 
 export const useDevicesStore = defineStore('device', () => {
   const deviceInfo = computed(() => {
@@ -18,7 +19,7 @@
     cancel: cancelDevicePolling
   } = useRequest(getDeviceList, {
     manual: true,
-    pollingInterval: 6000,
+    pollingInterval: DEVICE_INFO_POLLING_DURATION,
     pollingWhenHidden: false
   })
 

--
Gitblit v1.8.0