fix: 修复关闭子页面后主页面数据不刷新问题

This commit is contained in:
tony
2023-02-27 20:16:49 +08:00
parent 3cf649a932
commit a94131e061
5 changed files with 10 additions and 10 deletions

View File

@@ -174,8 +174,8 @@ export default {
/** 返回页面 */ /** 返回页面 */
goBack() { goBack() {
// 关闭当前标签页并返回上个页面 // 关闭当前标签页并返回上个页面
this.$store.dispatch("tagsView/delView", this.$route); const obj = { path: "/task/finished", query: { t: Date.now()} };
this.$router.go(-1) this.$tab.closeOpenPage(obj);
}, },
} }
}; };

View File

@@ -173,8 +173,8 @@ export default {
/** 返回页面 */ /** 返回页面 */
goBack() { goBack() {
// 关闭当前标签页并返回上个页面 // 关闭当前标签页并返回上个页面
this.$store.dispatch("tagsView/delView", this.$route); const obj = { path: "/task/process", query: { t: Date.now()} };
this.$router.go(-1) this.$tab.closeOpenPage(obj);
}, },
} }
}; };

View File

@@ -109,8 +109,8 @@ export default {
/** 返回页面 */ /** 返回页面 */
goBack() { goBack() {
// 关闭当前标签页并返回上个页面 // 关闭当前标签页并返回上个页面
this.$store.dispatch("tagsView/delView", this.$route); const obj = { path: "/task/process", query: { t: Date.now()} };
this.$router.go(-1) this.$tab.closeOpenPage(obj);
}, },
/** 接收子组件传的值 */ /** 接收子组件传的值 */
getData(data) { getData(data) {

View File

@@ -380,8 +380,8 @@ export default {
/** 返回页面 */ /** 返回页面 */
goBack() { goBack() {
// 关闭当前标签页并返回上个页面 // 关闭当前标签页并返回上个页面
this.$store.dispatch("tagsView/delView", this.$route); const obj = { path: "/task/todo", query: { t: Date.now()} };
this.$router.go(-1) this.$tab.closeOpenPage(obj);
}, },
/** 驳回任务 */ /** 驳回任务 */
handleReject() { handleReject() {

View File

@@ -544,8 +544,8 @@ export default {
this.idGlobal = 100 this.idGlobal = 100
this.open = false; this.open = false;
// 关闭当前标签页并返回上个页面 // 关闭当前标签页并返回上个页面
this.$store.dispatch("tagsView/delView", this.$route); const obj = { path: "/flowable/form", query: { t: Date.now()} };
this.$router.go(-1) this.$tab.closeOpenPage(obj);
} }
}); });
} }