Skip to content

Commit

Permalink
fix(frontend): 修复临时密码失败实例数量不对问题 #8250
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 26350
  • Loading branch information
JustaCattt committed Dec 10, 2024
1 parent a064767 commit f84e64f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions dbm-ui/frontend/src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -3706,5 +3706,6 @@
"单据协助设置": "单据协助设置",
"主域名,从域名,单节点必须分开查询": "主域名,从域名,单节点必须分开查询",
"实际内存分配比率": "实际内存分配比率",
"错误日志": "错误日志",
"这行勿动!新增翻译请在上一行添加!": ""
}
2 changes: 1 addition & 1 deletion dbm-ui/frontend/src/types/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
},
});
Expand Down

0 comments on commit f84e64f

Please sign in to comment.