Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: 手风琴bug #276

Open
ys2rice2yangsong opened this issue Oct 26, 2022 · 0 comments
Open

🐛 [Bug]: 手风琴bug #276

ys2rice2yangsong opened this issue Oct 26, 2022 · 0 comments

Comments

@ys2rice2yangsong
Copy link

Version

13.3.0

Angular Version

13.3.0

Link to minimal reproduction

正常运行代码:
clickMenu(item:AccordionItemClickEvent) {
let click = {
it: {
label: item.item.label,
key: item.item.key
},
par: {
label: item.parent.label,
key: item.parent.key
}
}
this.store.dispatch(addMenus(click))

}
出现bug代码:
clickMenu(item:AccordionItemClickEvent) {
// let click = {
// it: {
// label: item.item.label,
// key: item.item.key
// },
// par: {
// label: item.parent.label,
// key: item.parent.key
// }
// }
let click = {it: item.item, par: item.parent}
this.store.dispatch(addMenus(click))

}
第一次点机正常,当第二次点击其他项目的时候出现bug
image

Step to reproduce

正常运行代码:
clickMenu(item:AccordionItemClickEvent) {
let click = {
it: {
label: item.item.label,
key: item.item.key
},
par: {
label: item.parent.label,
key: item.parent.key
}
}
this.store.dispatch(addMenus(click))

}
出现bug代码:
clickMenu(item:AccordionItemClickEvent) {
// let click = {
// it: {
// label: item.item.label,
// key: item.item.key
// },
// par: {
// label: item.parent.label,
// key: item.parent.key
// }
// }
let click = {it: item.item, par: item.parent}
this.store.dispatch(addMenus(click))

}
第一次点机正常,当第二次点击其他项目的时候出现bug
image

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant