From a94131e061dc30349434ab80ad0e695afd3fcefc Mon Sep 17 00:00:00 2001 From: tony <846249920@qq.com> Date: Mon, 27 Feb 2023 20:16:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=AD=90=E9=A1=B5=E9=9D=A2=E5=90=8E=E4=B8=BB=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8D=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/flowable/task/finished/detail/index.vue | 4 ++-- ruoyi-ui/src/views/flowable/task/myProcess/detail/index.vue | 4 ++-- ruoyi-ui/src/views/flowable/task/myProcess/send/index.vue | 4 ++-- ruoyi-ui/src/views/flowable/task/todo/detail/index.vue | 4 ++-- ruoyi-ui/src/views/tool/build/index.vue | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ruoyi-ui/src/views/flowable/task/finished/detail/index.vue b/ruoyi-ui/src/views/flowable/task/finished/detail/index.vue index ab323507..a3f15c41 100644 --- a/ruoyi-ui/src/views/flowable/task/finished/detail/index.vue +++ b/ruoyi-ui/src/views/flowable/task/finished/detail/index.vue @@ -174,8 +174,8 @@ export default { /** 返回页面 */ goBack() { // 关闭当前标签页并返回上个页面 - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.go(-1) + const obj = { path: "/task/finished", query: { t: Date.now()} }; + this.$tab.closeOpenPage(obj); }, } }; diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/detail/index.vue b/ruoyi-ui/src/views/flowable/task/myProcess/detail/index.vue index 2459b0e8..3251ca04 100644 --- a/ruoyi-ui/src/views/flowable/task/myProcess/detail/index.vue +++ b/ruoyi-ui/src/views/flowable/task/myProcess/detail/index.vue @@ -173,8 +173,8 @@ export default { /** 返回页面 */ goBack() { // 关闭当前标签页并返回上个页面 - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.go(-1) + const obj = { path: "/task/process", query: { t: Date.now()} }; + this.$tab.closeOpenPage(obj); }, } }; diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/send/index.vue b/ruoyi-ui/src/views/flowable/task/myProcess/send/index.vue index 6cfacb73..b66f1af1 100644 --- a/ruoyi-ui/src/views/flowable/task/myProcess/send/index.vue +++ b/ruoyi-ui/src/views/flowable/task/myProcess/send/index.vue @@ -109,8 +109,8 @@ export default { /** 返回页面 */ goBack() { // 关闭当前标签页并返回上个页面 - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.go(-1) + const obj = { path: "/task/process", query: { t: Date.now()} }; + this.$tab.closeOpenPage(obj); }, /** 接收子组件传的值 */ getData(data) { diff --git a/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue b/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue index 6ceaefe7..312ba2c9 100644 --- a/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue +++ b/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue @@ -380,8 +380,8 @@ export default { /** 返回页面 */ goBack() { // 关闭当前标签页并返回上个页面 - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.go(-1) + const obj = { path: "/task/todo", query: { t: Date.now()} }; + this.$tab.closeOpenPage(obj); }, /** 驳回任务 */ handleReject() { diff --git a/ruoyi-ui/src/views/tool/build/index.vue b/ruoyi-ui/src/views/tool/build/index.vue index e368e66c..994bef5c 100644 --- a/ruoyi-ui/src/views/tool/build/index.vue +++ b/ruoyi-ui/src/views/tool/build/index.vue @@ -544,8 +544,8 @@ export default { this.idGlobal = 100 this.open = false; // 关闭当前标签页并返回上个页面 - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.go(-1) + const obj = { path: "/flowable/form", query: { t: Date.now()} }; + this.$tab.closeOpenPage(obj); } }); }