付延余
2022-07-26 7c3218e12105b87cab21e9ced57c99c339ffac10
components/common/popup-menu/popup-menu.vue
@@ -69,7 +69,7 @@
      };
   },
   onShow() {
      alert(111)
      alert(111);
   },
   methods: {
      menuClick(){
@@ -85,7 +85,22 @@
      },
      menuPopupClick(){
         this.menuShow = false;
         redirectLogin();
         uni.request({
            url:'/auth/token/logout',
            method:'DELETE',
            header:{
               'TENANT-ID': 5,
               Authorization: 'Bearer ' + uni.getStorageSync('access_token'),
               VERSION: 'zzl'
            }
         }).then(res=>{
          redirectLogin();
         }).catch(err=>{
            uni.showToast({
               title:'退出失败!',
            })
         })
      }
   }
};