diff --git a/src/components/Appaside.vue b/src/components/Appaside.vue index 0715970..e71a481 100644 --- a/src/components/Appaside.vue +++ b/src/components/Appaside.vue @@ -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"; +}); } //获取会话列表 diff --git a/src/utils/axios.js b/src/utils/axios.js index 4f68c9a..d97e017 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -15,10 +15,10 @@ import { setStorage , getStorage } from '@/utils/storage.js'; let baseURL = '' if (process.env.NODE_ENV === 'development') { // 生产环境 - baseURL = "http://192.168.1.174:8086/" + baseURL = "https://pk.zhukeping.com/" } else { // 测试环境 - baseURL = "http://192.168.1.174:8086/" + baseURL = "https://pk.zhukeping.com/" } // 请求拦截器