gaoluyang
10 天以前 2a500686266b8fc6dae991c799800e37083a45c2
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()
}