From d326e2e8722192220a273cd620f5d44657b0d10e Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Tue, 6 May 2025 14:41:27 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/navigation/navigationBar.vue | 8 ++++++-- pages/notice/detail.vue | 7 ++++++- pages/notice/public-notice.vue | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/components/navigation/navigationBar.vue b/components/navigation/navigationBar.vue index 1173686..750dbbc 100644 --- a/components/navigation/navigationBar.vue +++ b/components/navigation/navigationBar.vue @@ -31,6 +31,10 @@ type: String, default: '#fff' }, + navigatePath: { + type: String, + default: '000' + }, }, data() { return { @@ -40,8 +44,8 @@ methods: { back() { console.log('返回'); - if (this.title == '通告详情') { - this.$emit('goIndex') + if (this.navigatePath != '000') { + this.$tab.navigateTo(this.navigatePath) } else { uni.navigateBack() } diff --git a/pages/notice/detail.vue b/pages/notice/detail.vue index 3e413ab..460b8c5 100644 --- a/pages/notice/detail.vue +++ b/pages/notice/detail.vue @@ -1,6 +1,6 @@