颜琼丽 пре 11 часа
родитељ
комит
7e91a4e74c
1 измењених фајлова са 22 додато и 22 уклоњено
  1. 22 22
      jd_logistics-app/pages/mine/mine.vue

+ 22 - 22
jd_logistics-app/pages/mine/mine.vue

@@ -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 => {
-					uni.hideLoading();
-					uni.showToast({
-						title: '退出失败',
-						icon: 'none'
-					});
-				});
+				// 	// 延迟刷新页面状态
+				// 	setTimeout(() => {
+				// 		uni.$emit('userLogoutSuccess');
+				// 	}, 500);
+				// }).catch(err => {
+				// 	uni.hideLoading();
+				// 	uni.showToast({
+				// 		title: '退出失败',
+				// 		icon: 'none'
+				// 	});
+				// });
 			}
 		}
 	});