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