From 20f08606a54c429859d44cc4cc115a431a44cfdf Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Thu, 18 Jul 2024 18:15:36 +0800 Subject: [PATCH] 1 --- pages/index/index.vue | 1 + pages/investigation/index.vue | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/pages/index/index.vue b/pages/index/index.vue index bcf00ec..55e6ba3 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -167,6 +167,7 @@ // this.$.open(even) }, jump() { + this.$.setData('pageStatus','1') this.$.openTab('/pages/investigation/index') } }, diff --git a/pages/investigation/index.vue b/pages/investigation/index.vue index 789167c..4d5fab8 100644 --- a/pages/investigation/index.vue +++ b/pages/investigation/index.vue @@ -91,6 +91,11 @@ onShow: function() { this.getData() + let pageStatus = this.$.getData('pageStatus') + if(pageStatus == 1){ + this.handleTabClick(1) + this.$.setData('pageStatus','0') + } }, // 计算属性 computed: {