Explorar el Código

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

zhangyuhan hace 2 años
padre
commit
5ac8c2bf93
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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)
             }