书架更新通知
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user