Skip to content

Commit

Permalink
fix: bug 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzy committed May 30, 2024
1 parent 001f533 commit 9937de4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/MultipleSection/Section.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="selected-item" v-for="(item, index) in multipleSelection" :key="index"
@click="handleRemoverSeclection(index)">
<div class="info">
<span>{{ item.nickname }}</span>
<span>{{ item.NickName }}</span>
<el-icon :size="18" class="icon">
<CircleClose />
</el-icon>
Expand Down
4 changes: 2 additions & 2 deletions src/components/MultipleSection/useSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const useSection = (props: Props) => {
}
}
const handleSelectionRowChange = (contact: Contact[], row: Contact) => {
const isDelete = contact.every(item => item.wxid !== row.wxid)
const isDelete = contact.every(item => item.UserName !== row.UserName)
if (!isDelete) return
const index = multipleSelection.value.findIndex(
item => item.wxid === row.wxid
item => item.UserName === row.UserName
)
if (index === -1) return
handleRemoverSeclection(index)
Expand Down

0 comments on commit 9937de4

Please sign in to comment.