Vue-router reported an error

it is known that vue-router clicked on the jump link and the console reported an error as shown in the figure

.

the direction is not obvious. I don"t know where to find the error

Apr.19,2021

the second line at a.removeTabindex goes in to see if forEach is used for null somewhere.


the object you traverse is empty. Probably that object is dynamically generated, and when traversing, it cannot be obtained, so an error is reported. You can set a flag, in the function after building the object, give flag a value, determine, when flag is this value, and then traverse.
or use the lifecycle function.

Menu