diff --git a/components/custom-navbar/custom-navbar.vue b/components/custom-navbar/custom-navbar.vue index cab3fcc..f0c6531 100644 --- a/components/custom-navbar/custom-navbar.vue +++ b/components/custom-navbar/custom-navbar.vue @@ -117,6 +117,12 @@ export default { // 自动执行返回逻辑 uni.navigateBack({ delta: 1, + fail: () => { + // 如果没有上一页,跳转到首页 + uni.reLaunch({ + url: "/pages/index/index", // 确保路径正确 + }); + }, }); } }, diff --git a/pages/memorial/memorialHall.vue b/pages/memorial/memorialHall.vue index 7f10779..e7a161b 100644 --- a/pages/memorial/memorialHall.vue +++ b/pages/memorial/memorialHall.vue @@ -2,11 +2,7 @@ - + {{ memorialDetail ? memorialDetail.name : "加载中..." }} + >{{ memorialDetail ? memorialDetail.code : "加载中..." }}