mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 17:50:22 -05:00
Import page components before the router instance (which uses them) instead of having the global components between them
This commit is contained in:
parent
3a260dceec
commit
1082c0f39b
1 changed files with 6 additions and 6 deletions
12
resources/assets/js/app.js
vendored
12
resources/assets/js/app.js
vendored
|
@ -15,12 +15,6 @@ Vue.use(Vuex);
|
|||
// CSRF prevention header
|
||||
Vue.http.headers.common["X-CSRF-TOKEN"] = env.csrfToken;
|
||||
|
||||
// Import page components
|
||||
import HomePage from "pages/home.vue";
|
||||
import BlogPage from "pages/blog.vue";
|
||||
import ContactPage from "pages/contact.vue";
|
||||
import Error404Page from "pages/error404.vue";
|
||||
|
||||
// Import global components
|
||||
import NavSection from "sections/nav.vue";
|
||||
import FooterSection from "sections/footer.vue";
|
||||
|
@ -31,6 +25,12 @@ Vue.component("nav-component", NavSection);
|
|||
Vue.component("footer-component", FooterSection);
|
||||
Vue.component("lang", Lang);
|
||||
|
||||
// Import page components
|
||||
import HomePage from "pages/home.vue";
|
||||
import BlogPage from "pages/blog.vue";
|
||||
import ContactPage from "pages/contact.vue";
|
||||
import Error404Page from "pages/error404.vue";
|
||||
|
||||
// Create a router instance
|
||||
const router = new VueRouter({
|
||||
mode: "history",
|
||||
|
|
Loading…
Reference in a new issue