Browse Source

修改返回

wangxy 1 day ago
parent
commit
3f23e3fd10
2 changed files with 5 additions and 4 deletions
  1. 3 2
      pages/admin/my/yhxy.vue
  2. 2 2
      pages/admin/my/yszc.vue

+ 3 - 2
pages/admin/my/yhxy.vue

@@ -112,9 +112,10 @@ const pageMap = {
 };
 
 function goUpPage() {
-	const targetUrl = pageMap[fromPage.value];
+	// const targetUrl = pageMap[fromPage.value];
 	if (targetUrl) {
-		uni.navigateTo({ url: targetUrl });
+		// uni.navigateTo({ url: targetUrl });
+		uni.navigateBack()
 	} else {
 		console.error('无效路由标识:', data);
 	}

+ 2 - 2
pages/admin/my/yszc.vue

@@ -178,9 +178,9 @@ const pageMap = {
 };
 
 function goUpPage() {
-	const targetUrl = pageMap[fromPage.value];
+	// const targetUrl = pageMap[fromPage.value];
 	if (targetUrl) {
-		uni.navigateTo({ url: targetUrl });
+		uni.navigateBack()
 	} else {
 		console.error('无效路由标识:', data);
 	}