From fd9cfc4487773c00114b7748f1f885e9e7a81135 Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期四, 05 六月 2025 11:04:17 +0800
Subject: [PATCH] solve the MiniProgramError: process is not defined

---
 components/footer/customer-footer.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/components/footer/customer-footer.vue b/components/footer/customer-footer.vue
index 423802c..f0a56cb 100644
--- a/components/footer/customer-footer.vue
+++ b/components/footer/customer-footer.vue
@@ -19,6 +19,8 @@
 
 <script setup lang="ts">
 import { ref, computed } from 'vue'
+import { useNavigator } from '@/composables/useNavigator'
+const { navigateTo, reLaunchTo} = useNavigator()
 
 interface TabItem {
   text: string
@@ -57,9 +59,12 @@
 })
 
 function go(index: number, item: TabItem) {
-  uni.reLaunch({
-    url: item.pagePath,
-  })
+  // uni.reLaunch({
+  //   url: item.pagePath,
+  // })
+  
+  reLaunchTo(item.pagePath)
+ 
 }
 </script>
 

--
Gitblit v1.9.3