私のページを再読み込みするたびに、私のVueコンテンツを表示する代わりに、表示されてすぐに解散(ちらつき)します。Laravel 5.3 - ページ再読み込み時に2回点滅する
マイapp.jsファイル:
require('./bootstrap');
var Vue = require('vue');
new Vue({
el: '#root',
data: {
message: 'Hello world!'
}
});
マイビュー:
<div id="root">
<input type="text" v-model="message">
<p>The value of the input is: @{{ message }}</p>
</div>
Vueのコンソールエラー:ここで問題になる可能性がどのような
[Vue warn]: Failed to mount component: template or render function not defined. (found in root instance)
?
コンソールにエラーがありますか? –
私は今それを追加しました! –