What happens is, I have an input field on page A, and when I go to page B, I jump back

My input field style has changed

But when I refresh it, it changes back

The way I did it at the beginning

Reload () and place it in Mounted, so that when I first enter the screen, it automatically refreshes

The problem was solved for the time being, and the project manager didn’t find the bug. But I knew that was a risk, that if they had a special resolution, it might cause an infinite refresh, and the maintenance guys would scratch their heads and not be able to find that line of code and so I thought about other ways

What I’m going to do is

Let’s see if we can refresh it only once

I worked on it for hours. Okay, I can’t find it

What I’m going to do after that is

Ask the front end of other project team, he said it should be global and local style problem, so toss about a little, failed to fix but I think it should be global style local coverage

What I’m going to do after that is

Ask, some people in QQ group, a young man told me that if the global style, a different class name. At that time, I accumulated, wu wu. Because I copied the input box of interface A directly from interface B, and then modified it on this basis, so I changed the outermost class name, and done

So if you want to write a style, you should add a scoped so that the style will not interfere and the people behind you will be confused