瀏覽代碼

支持外部跳转至信息中心

xiaohaizhao 6 月之前
父節點
當前提交
0a70d69941
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      pages/tabbar/home/index.js

+ 9 - 0
pages/tabbar/home/index.js

@@ -22,6 +22,15 @@ Page({
         this.refreshData() //更新权限等信息
         this.getTabBar().unReadMessageCount(); //更新信息数量
 
+        if (getApp().globalData.http.appName == 'message') {
+            setTimeout(() => {
+                this.getTabBar().onChange({
+                    detail: "message"
+                })
+            }, 100)
+            delete getApp().globalData.http.appName
+        }
+
         _Http.basic({
             "classname": "sysmanage.develop.querytemplet.querytemplet",
             "method": "query",