This commit is contained in:
2026-02-04 11:27:45 +08:00
parent 1b17eb1dd2
commit b526c249e8
3 changed files with 7 additions and 3 deletions

View File

@@ -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)
})