now you need to change the style of an element on the page based on the current route when the page jumps to a route.
Boss, don"t just talk about ideas, but also talk about the specific implementation code. I am relatively bad, a lot of grammar is not very familiar with, please!