In the pop-up window, click the index menu, and the page scrolls to the appropriate location.

as shown in the picture, in the pop-up window of the page, click the index menu on the left, and the content on the right scrolls to the appropriate location. How can this effect be achieved?

I have tried to pass the anchor point, but it doesn"t seem to work in the pop-up window
the project is made by VUE

Dec.17,2021

use scrollTop

Menu