From f0f1b5790a28b9f9b6c7f83ac0d8efbd2063e652 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 20 Oct 2022 15:50:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=90=E5=91=98=E6=97=B6=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=8C=89=E7=85=A7ID=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018544 --user=李玉号 【系统设置】工作空间-成员-添加成员时不能按照ID搜索成员 https://www.tapd.cn/55049933/s/1269732 --- system-setting/frontend/src/business/common/AddMember.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system-setting/frontend/src/business/common/AddMember.vue b/system-setting/frontend/src/business/common/AddMember.vue index fc66e3255f..0cd06a914b 100644 --- a/system-setting/frontend/src/business/common/AddMember.vue +++ b/system-setting/frontend/src/business/common/AddMember.vue @@ -176,7 +176,10 @@ export default { this.handleUserOption(queryString ? this.userListCopy.filter(this.createFilter(queryString)) : this.userListCopy); }, createFilter(queryString) { - return item => (item.name.toLowerCase().indexOf(queryString.toLowerCase()) !== -1); + return item => { + return (item.id.toLowerCase().indexOf(queryString.toLowerCase()) !== -1 + || (item.name && item.name.toLowerCase().indexOf(queryString.toLowerCase()) !== -1)); + }; }, resetUserOption(val) { if (val) {