Browse Source

修改返回

wangxy 23 hours ago
parent
commit
c8878e744d
2 changed files with 2 additions and 13 deletions
  1. 1 7
      pages/admin/my/yhxy.vue
  2. 1 6
      pages/admin/my/yszc.vue

+ 1 - 7
pages/admin/my/yhxy.vue

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

+ 1 - 6
pages/admin/my/yszc.vue

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