Skip to content

Commit

Permalink
perf: add NProgress configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Feb 20, 2019
1 parent 5d82985 commit 1052ab5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/permission.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import router from './router'
import store from './store'
import NProgress from 'nprogress' // Progress 进度条
import 'nprogress/nprogress.css'// Progress 进度条样式
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { Message } from 'element-ui'
import { getToken } from '@/utils/auth' // 验权
import { getToken } from '@/utils/auth' // getToken from cookie

NProgress.configure({ showSpinner: false })// NProgress configuration

const whiteList = ['/login'] // 不重定向白名单
router.beforeEach((to, from, next) => {
Expand Down

0 comments on commit 1052ab5

Please sign in to comment.