Procházet zdrojové kódy

perf: add NProgress configuration

Pan před 6 roky
rodič
revize
1052ab5bf8
1 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 5 3
      src/permission.js

+ 5 - 3
src/permission.js

@@ -1,9 +1,11 @@
1 1
 import router from './router'
2 2
 import store from './store'
3
-import NProgress from 'nprogress' // Progress 进度条
4
-import 'nprogress/nprogress.css'// Progress 进度条样式
3
+import NProgress from 'nprogress' // progress bar
4
+import 'nprogress/nprogress.css' // progress bar style
5 5
 import { Message } from 'element-ui'
6
-import { getToken } from '@/utils/auth' // 验权
6
+import { getToken } from '@/utils/auth' // getToken from cookie
7
+
8
+NProgress.configure({ showSpinner: false })// NProgress configuration
7 9
 
8 10
 const whiteList = ['/login'] // 不重定向白名单
9 11
 router.beforeEach((to, from, next) => {