1. 安装npm install --save nprogress
2.导入js和css
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
3.在请求拦截器和响应拦截器中进行展示进度条和隐藏进度条
2023-11-22 18:52:22
1. 安装npm install --save nprogress
2.导入js和css
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
3.在请求拦截器和响应拦截器中进行展示进度条和隐藏进度条