Ver código fonte

优化:登录状态,才需要访问这些接口

shizhongqi 11 meses atrás
pai
commit
4e78a0f9f0
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      hdApp/src/admin/home/workbench.vue

+ 4 - 3
hdApp/src/admin/home/workbench.vue

@@ -512,14 +512,15 @@ export default {
         this.backAction = ''
       }
 
+      // 判断是否登录
       if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
           if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
             this.handleLoginStyle(this.loginInfo.onlyCg)
           }
+          
+          this.getUnReadMsgCount()
+          this.showShopName()
       }
-
-      this.showShopName()
-      this.getUnReadMsgCount()
   },
 	onShareAppMessage(res) {
 		return {