refactor: redesign module system
This commit is contained in:
1 parent
7ba2102b96
commit
4c51428587
8 files changed
+29
-20
No files matched your search
@@ -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