update 优化 通知公告页面增加查看详情功能 支持预览已经编辑好的富文本内容
update 优化 消息盒子相关消息可直接跳转到详情页展示富文本内容
This commit is contained in:
@@ -25,7 +25,6 @@ export interface PushMessagePayload {
|
||||
message?: string;
|
||||
data?: Record<string, any> | null;
|
||||
path?: string;
|
||||
query?: Record<string, any> | null;
|
||||
timestamp?: number;
|
||||
}
|
||||
|
||||
@@ -40,7 +39,6 @@ export const parsePushMessage = (raw: string): PushMessagePayload => {
|
||||
message: payload.message ?? '',
|
||||
data: payload.data ?? null,
|
||||
path: payload.path,
|
||||
query: payload.query ?? null,
|
||||
timestamp: payload.timestamp ?? Date.now()
|
||||
};
|
||||
} catch {
|
||||
@@ -50,7 +48,6 @@ export const parsePushMessage = (raw: string): PushMessagePayload => {
|
||||
message: raw,
|
||||
data: null,
|
||||
path: undefined,
|
||||
query: null,
|
||||
timestamp: Date.now()
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user