优化代码
This commit is contained in:
@@ -411,11 +411,13 @@ function initNotification() {
|
||||
}
|
||||
|
||||
function showNotification() {
|
||||
new Notification("新消息到达", {
|
||||
const notification = new Notification("新消息到达", {
|
||||
body: "您有 "+ chatList.value.unreadTotal +" 封未读消息",
|
||||
lang: "zh-CN", // 语言
|
||||
// onClick: () => window.location.href = "/nav/Message",
|
||||
});
|
||||
notification.addEventListener('click', () => {
|
||||
window.location.href = "https://pk.webapp.yolozs.com/nav/Message";
|
||||
});
|
||||
}
|
||||
|
||||
//获取会话列表
|
||||
|
||||
Reference in New Issue
Block a user