Laravel VueJs : `router-view` does not render the component

后端 未结 2 1865
悲&欢浪女
悲&欢浪女 2020-11-30 16:10

I know such questions are out there in this site but they do not solve my problem. Hence this question pops up here :

In my Laravel 5.3 and VueJs ap

2条回答
  •  暖寄归人
    2020-11-30 16:40

    I think that inside of "render: h => h(App)" you can use

    components: {App},
    template: ''
    

    Then the app.js code will be like:

    import  router  from './router';
    import App from '../components/App.vue';
    
    var app = new Vue({
        el: '#app',
        components: {App},
        template: '',
        router
    });
    

    I hope that works.

    best regards!

提交回复
热议问题