From 61dedbff9e9965eda9c91be5cc0e64f0db7db22e Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 06 十一月 2023 17:46:30 +0800
Subject: [PATCH] feat: 过长文本截断,调整日期组件防止换行

---
 src/stores/devices.ts |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/stores/devices.ts b/src/stores/devices.ts
index 36362b0..a23d468 100644
--- a/src/stores/devices.ts
+++ b/src/stores/devices.ts
@@ -1,14 +1,15 @@
-import { computed, onUnmounted, ref } from 'vue'
+import { computed } from 'vue'
 import { defineStore } from 'pinia'
-import { apiSetCurrentDevice, getDeviceList } from '@/api'
-import type { SetCurrentDeviceParams } from '@/api'
+import { getDeviceList } from '@/api'
 import { useRequest } from 'vue-hooks-plus'
 import type { Devices } from '@/api/device'
 import { DEVICE_INFO_POLLING_DURATION } from '@/common/constants'
-import { ElMessage } from 'element-plus'
 
 export const useDevicesStore = defineStore('device', () => {
   const deviceInfo = computed(() => {
+    if (deviceInfo?.value) {
+      deviceRes.value.data.currentDeviceID = 'wwwwwwww222222'
+    }
     return deviceRes?.value?.data as Devices
   })
 

--
Gitblit v1.8.0