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 = () => {