refactor: remove config namespaces
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user