From 8b241517566fe6895fe43ad97312551cefee2d12 Mon Sep 17 00:00:00 2001 From: zhuoqinglian <1035449612@qq.com> Date: Fri, 6 Mar 2026 09:20:15 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=99=BA=E8=83=BD=E4=BD=93=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manager-web/src/components/DeviceItem.vue | 55 ++++--------------- main/manager-web/src/i18n/de.js | 5 +- main/manager-web/src/i18n/en.js | 3 +- main/manager-web/src/i18n/pt_BR.js | 19 +++++-- main/manager-web/src/i18n/vi.js | 3 +- main/manager-web/src/i18n/zh_CN.js | 7 +-- main/manager-web/src/i18n/zh_TW.js | 7 +-- main/manager-web/src/views/roleConfig.vue | 35 +++++++++++- 8 files changed, 65 insertions(+), 69 deletions(-) diff --git a/main/manager-web/src/components/DeviceItem.vue b/main/manager-web/src/components/DeviceItem.vue index 87a82687..8ebcf1f5 100644 --- a/main/manager-web/src/components/DeviceItem.vue +++ b/main/manager-web/src/components/DeviceItem.vue @@ -33,7 +33,7 @@
- + {{ $t('home.chatHistory') }} {{ $t('home.chatHistory') }} @@ -41,11 +41,11 @@
{{ $t('home.lastConversation') }}:{{ formattedLastConnectedTime }}
-
-
- {{ tag }} + +
+ {{ tags.join() }}
-
+
@@ -114,25 +114,6 @@ export default { this.$emit('chat-history', { agentId: this.device.agentId, agentName: this.device.agentName }) } }, - watch: { - tags: { - handler(newTags) { - if (newTags.length === 0) return; - this.$nextTick(() => { - const scrollWidth = this.$refs.scrollRef.clientWidth; - const tagsWidth = this.$refs.tagsRef.clientWidth; - if (tagsWidth < scrollWidth) { - this.$refs.tagsRef.style.width = '100%'; - this.$refs.tagsRef.style.justifyContent = 'flex-end'; - } else { - this.$refs.tagsRef.style.width = 'fit-content'; - this.$refs.tagsRef.style.justifyContent = 'flex-start'; - } - }) - }, - immediate: true - } - } }