remove : 2명으로 제한 로직 풀기

This commit is contained in:
Yesol Choi
2025-05-29 09:11:44 +09:00
parent d0c91e6a44
commit bca114c082

View File

@@ -69,23 +69,27 @@ const onKeyup = async (e: any) => {
const res = await getUserList({params:{name : e.target.value}}) const res = await getUserList({params:{name : e.target.value}})
if (res.length > 0) { if (res.length > 0) {
res.forEach(u => { // res.forEach(u => { 2명으로 제한 로직 풀기 25.05.29
if (model.value?.length > 0) { // if (model.value?.length > 0) {
const ignore = model.value.reduce((a: Person, b: Person) => { // const ignore = model.value.reduce((a: Person, b: Person) => {
return a.sabun + '|' + b.sabun // console.log("aaaaa",a.sabun)
}) // console.log("bbbbbb",b.sabun)
// return a.sabun + '|' + b.sabun
if (typeof ignore !== 'object') { // })
if (ignore.includes(u.sabun)) { //
u['disabled'] = true // if (typeof ignore !== 'object') {
} // if (ignore.includes(u.sabun)) {
} else { // console.log("ignore 처리",u.sabun)
if (ignore.sabun.includes(u.sabun)) { // u['disabled'] = true
u['disabled'] = true // }
} // } else {
} // if (ignore.sabun.includes(u.sabun)) {
} // console.log("ignore 처리222",u.sabun)
}) // u['disabled'] = true
// }
// }
// }
// })
tagsOptions.value = res tagsOptions.value = res
} }
} catch (e) { } catch (e) {