refactor: remove config namespaces

This commit is contained in:
NGPixel
2018-05-28 14:46:55 -04:00
parent b1499d1d64
commit 416755f17a
27 changed files with 556 additions and 283 deletions

View File

@@ -41,6 +41,8 @@
import VueRouter from 'vue-router'
import { mapState } from 'vuex'
/* global WIKI */
const router = new VueRouter({
mode: 'history',
base: '/p',
@@ -53,6 +55,15 @@ const router = new VueRouter({
]
})
router.beforeEach((to, from, next) => {
WIKI.$store.commit('loadingStart', 'profile')
next()
})
router.afterEach((to, from) => {
WIKI.$store.commit('loadingStop', 'profile')
})
export default {
data() {
return {