标签:tar css gre next save main 进度 div start
1、安装
npm install --save nprogress
2、在main.js中引入
import NProgress from "nprogress" import "nprogress/nprogress.css"
3、在main.js中使用
router.beforeEach((to,from,next) => { NProgress.start() next() }) router.afterEach(() => { NProgress.done() })
标签:tar css gre next save main 进度 div start
原文地址:https://www.cnblogs.com/ruthless/p/9643861.html