You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
294 B

import router from "@/router"
import NProgress from "nprogress"
import "nprogress/nprogress.css"
router.beforeEach((to, from, next) => {
// console.log(to,from, next)
NProgress.start()
next()
})
router.afterEach(() => {
NProgress.done()
})
export default router