From 72907ea511c490ecfbd42b7d125f13d9edbbc53b Mon Sep 17 00:00:00 2001 From: Panzihang <819652404@qq.com> Date: Thu, 24 Aug 2023 17:06:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B6=E9=83=A8=E5=AF=BC=E8=88=AA=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/head-view/head-view.vue | 14 ++++++++++++-- pages/index/instructDetails.vue | 2 ++ pages/shipWork/abnormal.vue | 2 +- pages/shipWork/abnormalAdd.vue | 2 +- pages/shipWork/brandDetails.vue | 2 +- pages/shipWork/carDetails.vue | 2 +- pages/shipWork/documentList.vue | 2 +- pages/shipWork/mafi.vue | 2 +- pages/shipWork/mafiAdd.vue | 2 +- pages/shipWork/mixWork.vue | 2 +- pages/shipWork/notice.vue | 2 +- pages/shipWork/noticeAdd.vue | 2 +- pages/shipWork/opinion.vue | 2 +- pages/shipWork/opinionAdd.vue | 2 +- pages/shipWork/patrol.vue | 2 +- pages/shipWork/patrolAdd.vue | 2 +- pages/shipWork/peopleAdd.vue | 2 +- pages/shipWork/shipInfo.vue | 2 +- pages/shipWork/shipPlan.vue | 2 +- pages/shipWork/sign.vue | 1 - pages/shipWork/supply.vue | 2 +- pages/shipWork/supplyAdd.vue | 2 +- pages/shipWork/untieAdd.vue | 2 +- pages/shipWork/untieCord.vue | 2 +- pages/shipWork/workAssign.vue | 2 +- pages/shipWork/workAssignAdd.vue | 2 +- 26 files changed, 37 insertions(+), 26 deletions(-) diff --git a/components/head-view/head-view.vue b/components/head-view/head-view.vue index 08aa1cf..eac6f50 100644 --- a/components/head-view/head-view.vue +++ b/components/head-view/head-view.vue @@ -16,11 +16,21 @@ type: { type: Boolean, default: () => false - } + }, + url: { + type: String, + default: () => "" + }, }, methods: { toBack() { - uni.navigateBack('-1') + if (this.url != "") { + uni.navigateTo({ + url: `${this.url}` + }) + } else { + uni.navigateBack('-1') + } } } } diff --git a/pages/index/instructDetails.vue b/pages/index/instructDetails.vue index 0e84253..ede28fb 100644 --- a/pages/index/instructDetails.vue +++ b/pages/index/instructDetails.vue @@ -1,5 +1,6 @@