Эх сурвалжийг харах

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

zhangyuhan 2 жил өмнө
parent
commit
5ac8c2bf93

+ 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)
             }