in my memory, mounted hook is called at first, and then next callback function in beforeRouteEnter execute. The vue router document also say that, this is the url: Navigation Guards.
but when I test, the result is not right. This is the codesanbox url: demo.
As you see, the log in beforeRouteEnter next callback is logged at first.