SoybeanAdmin/src/plugins/nprogress.ts

10 lines
212 B
TypeScript
Raw Normal View History

2025-04-27 15:09:45 +08:00
import NProgress from 'nprogress';
/** Setup plugin NProgress */
export function setupNProgress() {
NProgress.configure({ easing: 'ease', speed: 500 });
// mount on window
window.NProgress = NProgress;
}