Javascript – why my sssss doesn’t load correctly in wav js2 when router pushes to another page

I have the SCSS file where I put it. assets/css/flexbox.scss Where CSS is like this:

.do-flex {
  display: flex;
}

.do-flex-col {
  display: flex;
  flex-direction: column;
}

Then I use them on the page. About.vue With root ‘/ about’ as follows:

<template> 
    <div> 
       <div class="do-flex">
           something here .....
       </div>
    </div>
</template>

<script>
 some codes here......
</script>

<style lang="scss" scoped> 
@import "../../assets/css/flexbox.scss";
</style>

I need to press the button when I have the trigger in the homepage. this.$router.push("/about")

the class do-flex Not rendered correctly and I have a similar class on other components with the same name. do-flex But not in a different way assets/css/flexbox.scssUnlike the above, then do-flex But not using style. assets/css/flexbox.scss For ingredients About.vue ,

Is there anything wrong with this nonsense? Name class? Because i do scoped Think style About.vue

Write a Comment

Your email address will not be published. Required fields are marked *