Cambio de orden
This commit is contained in:
parent
0207fca0cc
commit
cee049c545
1 changed files with 6 additions and 5 deletions
11
resources/js/app.js
vendored
11
resources/js/app.js
vendored
|
@ -3,11 +3,7 @@ import Vue from '../../node_modules/vue/dist/vue.esm.js';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import store from "./store";
|
import store from "./store";
|
||||||
|
|
||||||
window.Vue = Vue;
|
// Registro de components
|
||||||
window.Event = new Vue();
|
|
||||||
window.axios = axios;
|
|
||||||
window.bulmaToast = bulmaToast;
|
|
||||||
|
|
||||||
const components = import.meta.glob('./components/**/*.vue', { eager: true });
|
const components = import.meta.glob('./components/**/*.vue', { eager: true });
|
||||||
Object.entries(components).forEach(([path, module]) => {
|
Object.entries(components).forEach(([path, module]) => {
|
||||||
let name = path
|
let name = path
|
||||||
|
@ -19,6 +15,11 @@ Object.entries(components).forEach(([path, module]) => {
|
||||||
Vue.component(name, module.default);
|
Vue.component(name, module.default);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.Vue = Vue;
|
||||||
|
window.Event = new Vue();
|
||||||
|
window.axios = axios;
|
||||||
|
window.bulmaToast = bulmaToast;
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#root',
|
el: '#root',
|
||||||
store,
|
store,
|
||||||
|
|
Loading…
Add table
Reference in a new issue