Navbar in separate component (Vue 3)

Hi all. I wanna add the header into a separate component, but when I do it the header works incorrectly. I found the topic with the same problem bu but the solution here doesn’t work for me at all :frowning: