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:'退出失败!', }) }) } } };