Browse Source

feat: 点击消息进入消息中心页面

zhangyuhan 2 years ago
parent
commit
5ac8c2bf93
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/web/staticres/js/login.js

+ 8 - 0
src/web/staticres/js/login.js

@@ -473,6 +473,14 @@ function checkCounts() {
           notify.onclick = function () {
             try {
               getMsgBuoyActive.istoReaded(datas.ids)
+              switch (getMsgBuoyActive.platformOS()) {
+                case 'pc':
+                  location.href = '/swordfish/frontPage/messageCenter/sess/index'
+                  break;
+                case 'work_bench':
+                  window.open('/swordfish/frontPage/messageCenter/sess/index')
+                  break;
+              }
             } catch (e) {
               console.warn(e)
             }