From b90ba8658bb2a215f0f40b8d4eeb8542e14009a7 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Mon, 11 Sep 2023 15:13:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/device/CheckFill.vue | 6 ++---- pages/device/LubricateFill.vue | 6 ++---- pages/device/MaintainFill.vue | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/pages/device/CheckFill.vue b/pages/device/CheckFill.vue index 3ec6c53..a4a98c3 100644 --- a/pages/device/CheckFill.vue +++ b/pages/device/CheckFill.vue @@ -112,13 +112,11 @@ } }, toCancle () { - this.$store.dispatch('setPublicObj', '') this.goIn() }, goIn () { - uni.redirectTo({ - url: '/pages/device/CheckWork' - }) + this.$store.dispatch('setPublicObj', '') + uni.navigateBack() } } } diff --git a/pages/device/LubricateFill.vue b/pages/device/LubricateFill.vue index b6a425d..1596cce 100644 --- a/pages/device/LubricateFill.vue +++ b/pages/device/LubricateFill.vue @@ -112,13 +112,11 @@ } }, toCancle () { - this.$store.dispatch('setPublicObj', '') this.goIn() }, goIn () { - uni.redirectTo({ - url: '/pages/device/LubricateWork' - }) + this.$store.dispatch('setPublicObj', '') + uni.navigateBack() } } } diff --git a/pages/device/MaintainFill.vue b/pages/device/MaintainFill.vue index faef24f..53e58ec 100644 --- a/pages/device/MaintainFill.vue +++ b/pages/device/MaintainFill.vue @@ -112,13 +112,11 @@ } }, toCancle () { - this.$store.dispatch('setPublicObj', '') this.goIn() }, goIn () { - uni.redirectTo({ - url: '/pages/device/MaintainWork' - }) + this.$store.dispatch('setPublicObj', '') + uni.navigateBack() } } }