@@ -350,29 +350,29 @@ function userLogoutFn() {
content: '确认要退出登录吗?',
success: function(res) {
if (res.confirm) {
- uni.showLoading({
- title: '正在退出...'
- });
-
- userLogout({}).then(res => {
- appStore.LOGOUT();
- uni.hideLoading();
- uni.showToast({
- title: '已退出登录',
- icon: 'success'
+ // uni.showLoading({
+ // title: '正在退出...'
+ // });
+ appStore.LOGOUT();
+ // userLogout({}).then(res => {
+ // appStore.LOGOUT();
+ // uni.hideLoading();
+ // uni.showToast({
+ // title: '已退出登录',
+ // icon: 'success'
- // 延迟刷新页面状态
- setTimeout(() => {
- uni.$emit('userLogoutSuccess');
- }, 500);
- }).catch(err => {
- title: '退出失败',
- icon: 'none'
+ // // 延迟刷新页面状态
+ // setTimeout(() => {
+ // uni.$emit('userLogoutSuccess');
+ // }, 500);
+ // }).catch(err => {
+ // title: '退出失败',
+ // icon: 'none'
}
});