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() } } }