增加首页模块配置

This commit is contained in:
mtvpls
2026-01-04 16:29:16 +08:00
parent a078380a6d
commit 4a857ead08
3 changed files with 538 additions and 291 deletions
+2 -2
View File
@@ -31,14 +31,14 @@ export default function TopProgressBar() {
const originalForward = router.forward;
// 拦截 router.push
router.push = function (...args: any[]) {
router.push = function (...args: Parameters<typeof originalPush>) {
isNavigatingRef.current = true;
NProgress.start();
return originalPush.apply(this, args);
};
// 拦截 router.replace
router.replace = function (...args: any[]) {
router.replace = function (...args: Parameters<typeof originalReplace>) {
isNavigatingRef.current = true;
NProgress.start();
return originalReplace.apply(this, args);