admin管理员组

文章数量:1122846

I am currently working with component based routing in vuejs and when i want in component a to have a background-color that is red and component component b should be like green it just takes the background color from component a and applies it to all components. but when i put in scoped in one component nothing changes. can anyone help ?

i tried to take out the bg-color tag from :root in style.css, tried to make it reactive that it only apllies the bgcolor when its mounted and resets wen onBeforeUnmounted.

本文标签: cssvuejs scoped style backgroundcolorStack Overflow