How does vue router specify the scrolling position using scrollBehavior?

problem description

there is a list of topics recently created by the user on the user page. When you click on the last reply message on a topic, jump to the topic page and navigate to the last reply. But now after the jump to the past can not be located to the last reply, wrong report.

related codes

https://jsfiddle.net/0uytzaf5/
html view is the recently created theme template, and in the js view is the routing configuration.

[Vue warn]: Error in nextTick: "SyntaxError: Failed to execute "querySelector" on "Document": "-sharp5bc1d95337a6965f59052184" is not a valid selector."

isn't the last one supposed to be the bottom? see if you can locate the bottom of the next outer layer

.
Menu