./component/page/index.js
import './page.vue';
export default{
install: function(Vue){
Vue.component('Loading',MyLoading)
}
}
main.js
import page form '@/component/page';
Vue.use(page);
./component/page/index.js
import './page.vue';
export default{
install: function(Vue){
Vue.component('Loading',MyLoading)
}
}
main.js
import page form '@/component/page';
Vue.use(page);