vue實現動態異步組件

http://www.javashuo.com/article/p-qdxedikr-hm.htmlsegmentfault

https://www.jianshu.com/p/40a364b5e964ui

 

<component :is="currentTabComponent"></component>

components: {
    homePage: function(resolve) {
        require(['../homePage'], resolve)
    },
    resourceManage: function(resolve) {
        require(['../resourceManage'],resolve)
    }
}    
相關文章
相關標籤/搜索