From f0485e3c276ccdfb5aad33b19a00406a55d5d075 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 05 九月 2025 11:30:22 +0800
Subject: [PATCH] 协同审批真机测试,bug修改

---
 src/pages/cooperativeOffice/collaborativeApproval/contactSelect.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/pages/cooperativeOffice/collaborativeApproval/contactSelect.vue b/src/pages/cooperativeOffice/collaborativeApproval/contactSelect.vue
index 920ab79..d767ad9 100644
--- a/src/pages/cooperativeOffice/collaborativeApproval/contactSelect.vue
+++ b/src/pages/cooperativeOffice/collaborativeApproval/contactSelect.vue
@@ -81,11 +81,10 @@
 const stepIndex = ref(0)
 
 onMounted(() => {
-  // 鑾峰彇椤甸潰鍙傛暟
-  const pages = getCurrentPages()
-  const currentPage = pages[pages.length - 1]
-  if (currentPage.options.stepIndex !== undefined) {
-    stepIndex.value = parseInt(currentPage.options.stepIndex)
+  // 浠庢湰鍦板瓨鍌ㄨ幏鍙栧弬鏁�
+  const storedStepIndex = uni.getStorageSync('stepIndex');
+  if (storedStepIndex !== undefined && storedStepIndex !== null) {
+    stepIndex.value = parseInt(storedStepIndex)
   }
   
   // 鍒濆鍖栬仈绯讳汉鏁版嵁
@@ -121,6 +120,7 @@
 }
 
 const goBack = () => {
+  uni.removeStorageSync('stepIndex');
   uni.navigateBack()
 }
 

--
Gitblit v1.9.3