📅  最后修改于: 2022-03-11 15:03:50.548000             🧑  作者: Mango
//Use a single app.js with a single parent-component. Then, on each view that uses a VueJS component, write this:
//Where "desired-component" is a VueJS component that you've included in your app.js file on a line like this one:
Vue.component('desired-component', require('./components/DesiredComponent.vue').default);