refine
parent
1f87ce76a2
commit
fd76e476a4
|
@ -5,6 +5,8 @@ import 'nprogress/nprogress.css'// Progress 进度条样式
|
|||
import { Message } from 'element-ui'
|
||||
import { getToken } from '@/utils/auth' // 验权
|
||||
|
||||
NProgress.configure({ showSpinner: false })// NProgress Configuration
|
||||
|
||||
const whiteList = ['/login'] // 不重定向白名单
|
||||
router.beforeEach((to, from, next) => {
|
||||
NProgress.start()
|
||||
|
|
Loading…
Reference in New Issue