We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b7842 commit e59e62fCopy full SHA for e59e62f
src/views/home/index.vue
@@ -78,7 +78,7 @@ const getData = (values: string[]) => {
78
const getCheckedKeys = () => {
79
let res: string[] = []
80
const execute = (data: MenuListItem[], is: boolean) => {
81
- data.forEach((v) => {
+ (data || []).forEach((v) => {
82
is && res.push(v.id)
83
if (v.children) execute(v.children, true)
84
})
0 commit comments