From 2f22df61b37c304df847632311e4e78434ec8281 Mon Sep 17 00:00:00 2001 From: rain Date: Tue, 21 Jul 2026 13:46:16 +0800 Subject: [PATCH] fix: adapt shared page header to safe area --- components/PageHeader.vue | 12 ++++++++++-- tests/shared-component-document-flow-contract.ps1 | 4 ++++ tests/shared-interaction-accessibility-contract.ps1 | 10 ++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/components/PageHeader.vue b/components/PageHeader.vue index 5ef28dd..17ab7ef 100644 --- a/components/PageHeader.vue +++ b/components/PageHeader.vue @@ -74,9 +74,16 @@ const props = defineProps({ root: { type: Boolean, default: false }, unreadCount: { type: Number, default: 0 }, fallbackUrl: { type: String, default: "/pages/genealogy/g01-my-genealogies" }, + customBack: { type: Boolean, default: false }, }); +const emit = defineEmits(["brand", "notice", "action", "back"]); + const goBack = () => { + if (props.customBack) { + emit("back"); + return; + } const stack = getCurrentPages(); if (stack.length > 1) { uni.navigateBack(); @@ -88,7 +95,7 @@ const goBack = () => {