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
Just include this code to your css file
[v-cloak] { display:none; }
http://vuejs.org/api/#v-cloak
Usage example:
Hello
This directive will remain on the element until the associated Vue instance finishes compilation. Combined with CSS rules such as [v-cloak] { display: none }, this directive can be used to hide un-compiled mustache bindings until the Vue instance is ready.
http://vuejs.org/api/#v-cloak