From f84e64f576871ff4b994ae9dd4b93f5608c32706 Mon Sep 17 00:00:00 2001 From: chenwenchang <479999519@qq.com> Date: Tue, 10 Dec 2024 18:29:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8D=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E5=AF=86=E7=A0=81=E5=A4=B1=E8=B4=A5=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E4=B8=8D=E5=AF=B9=E9=97=AE=E9=A2=98=20#8250?= =?UTF-8?q?=20#=20Reviewed,=20transaction=20id:=2026350?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/frontend/src/locales/zh-cn.json | 1 + dbm-ui/frontend/src/types/auto-imports.d.ts | 2 +- .../temporary-paassword-modify/components/UpdateResult.vue | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dbm-ui/frontend/src/locales/zh-cn.json b/dbm-ui/frontend/src/locales/zh-cn.json index 9d5a38d36e..683573679e 100644 --- a/dbm-ui/frontend/src/locales/zh-cn.json +++ b/dbm-ui/frontend/src/locales/zh-cn.json @@ -3706,5 +3706,6 @@ "单据协助设置": "单据协助设置", "主域名,从域名,单节点必须分开查询": "主域名,从域名,单节点必须分开查询", "实际内存分配比率": "实际内存分配比率", + "错误日志": "错误日志", "这行勿动!新增翻译请在上一行添加!": "" } diff --git a/dbm-ui/frontend/src/types/auto-imports.d.ts b/dbm-ui/frontend/src/types/auto-imports.d.ts index d0c217f6f1..7021ac5101 100644 --- a/dbm-ui/frontend/src/types/auto-imports.d.ts +++ b/dbm-ui/frontend/src/types/auto-imports.d.ts @@ -71,6 +71,6 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' import('vue') } diff --git a/dbm-ui/frontend/src/views/temporary-paassword-modify/components/UpdateResult.vue b/dbm-ui/frontend/src/views/temporary-paassword-modify/components/UpdateResult.vue index bedb013240..5788d5488c 100644 --- a/dbm-ui/frontend/src/views/temporary-paassword-modify/components/UpdateResult.vue +++ b/dbm-ui/frontend/src/views/temporary-paassword-modify/components/UpdateResult.vue @@ -202,7 +202,9 @@ successList.value = data.success ? getInstanceList(data.success) : []; errorList.value = data.fail ? getInstanceList(data.fail) - : props.instanceList.map((item) => `${item.ip}:${item.port}`); + : props.instanceList + .map((item) => `${item.ip}:${item.port}`) + .filter((item) => !successList.value.includes(item)); } }, });