v-cloak does not work in vue.js?

前端 未结 6 1574
半阙折子戏
半阙折子戏 2020-12-13 06:24

There is a div in my page that for show the error message.When I refresh the page,it will appear for a while then it disappear. I added v-cloak but

6条回答
  •  悲&欢浪女
    2020-12-13 06:40

    I faced the same issue, and it was due to a conflicting display property on my div. To solve it, I used the !important flag on the [v-cloak] as:

    [v-cloak] {
        display: none !important;
    }
    
    .my-class {
        display: table-cell;
    }
    

提交回复
热议问题