书架更新通知

This commit is contained in:
mtvpls
2026-04-18 00:48:17 +08:00
parent 7fb11f0ff7
commit 308650f771
16 changed files with 797 additions and 22 deletions
+11
View File
@@ -122,6 +122,17 @@ export const NotificationPanel: React.FC<NotificationPanelProps> = ({
const { source, id, title } = notification.metadata;
router.push(`/play?source=${source}&id=${id}&title=${encodeURIComponent(title)}`);
onClose();
} else if (notification.type === 'manga_update' && notification.metadata) {
const { sourceId, mangaId, title, cover, sourceName } = notification.metadata;
const params = new URLSearchParams({
sourceId,
mangaId,
title: title || '',
cover: cover || '',
sourceName: sourceName || '',
});
router.push(`/manga/detail?${params.toString()}`);
onClose();
} else if (notification.type === 'movie_request') {
// 获取用户角色
const authInfo = getAuthInfoFromBrowserCookie();