fix
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import router from './index'
|
||||
import { useGlobalStore } from '@/stores/global'
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
useGlobalStore().setViewLoading(true)
|
||||
next()
|
||||
})
|
||||
|
||||
router.afterEach(() => {
|
||||
useGlobalStore().setViewLoading(false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user