diff --git a/common/httpRequest.js b/common/httpRequest.js
index 83d8842..06baa2f 100644
--- a/common/httpRequest.js
+++ b/common/httpRequest.js
@@ -26,6 +26,17 @@ module.exports = {
},
logout: function() {
let that = this;
+ // 获取当前页面实例
+ const pages = getCurrentPages();
+ // 获取当前页面的实例
+ const currentPage = pages[pages.length - 1];
+ // 获取页面路径
+ const pagePath = currentPage.route
+ const systemInfo = uni.getSystemInfoSync();
+ const isIOS = /iOS/.test(systemInfo.platform);
+ if ( pagePath == "pages/task/index") {
+ return;
+ }
uni.removeStorageSync("token")
uni.removeStorageSync("userId")
uni.removeStorageSync("phone")
diff --git a/pages/task/index.vue b/pages/task/index.vue
index 4942e2a..1701934 100644
--- a/pages/task/index.vue
+++ b/pages/task/index.vue
@@ -40,10 +40,10 @@
连续签到7天即可获得7元奖励
-
+