vue refresh the page flicker

Add v-cloak in a container

<div class="box" id="call-no-list" v-cloak></div>

Then add css stylesheet

[v-cloak] {
    display: none !important;
}

In this case, when the page loads are hidden, to resolve to the node vue time with v-clock, and would attribute and class at the same time remove out, this can be achieved to prevent the node blinking.

Guess you like

Origin www.cnblogs.com/wjqbooks/p/12045922.html