mirror of
https://github.com/ArthurDanjou/Hermes.git
synced 2026-01-26 18:00:43 +01:00
Initial commit 🚀
This commit is contained in:
9
src/modules/nprogress.ts
Normal file
9
src/modules/nprogress.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import NProgress from 'nprogress'
|
||||
import { UserModule } from '~/types'
|
||||
|
||||
export const install: UserModule = ({ isClient, router }) => {
|
||||
if (isClient) {
|
||||
router.beforeEach(() => { NProgress.start() })
|
||||
router.afterEach(() => { NProgress.done() })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user