File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import busuanzi from 'busuanzi.pure.js'
1414import './style.css'
1515import './style/index.css'
1616import '@fortawesome/fontawesome-free/css/all.min.css'
17- import { NProgress } from 'nprogress-v2/dist/index.js' // 进度条组件
18- import 'nprogress-v2/dist/index.css' // 进度条样式
1917
2018export default {
2119 extends : DefaultTheme ,
@@ -29,13 +27,8 @@ export default {
2927 app . component ( 'Tags' , Tags ) ;
3028
3129 if ( inBrowser ) {
32- NProgress . configure ( { showSpinner : false } )
33- router . onBeforeRouteChange = ( ) => {
34- NProgress . start ( ) // 开始进度条
35- }
3630 router . onAfterRouteChanged = ( ) => {
3731 busuanzi . fetch ( )
38- NProgress . done ( )
3932 }
4033 }
4134 } ,
Original file line number Diff line number Diff line change 3434 "glob" : " ^11.0.3" ,
3535 "gray-matter" : " ^4.0.3" ,
3636 "medium-zoom" : " ^1.1.0" ,
37- "nprogress-v2" : " ^1.1.10" ,
3837 "vitepress-sidebar" : " ^1.33.0"
3938 }
4039}
You can’t perform that action at this time.
0 commit comments