fix(办公管理): 页面标签存在路由缓存导致不刷新问题

This commit is contained in:
konbai
2022-07-12 20:36:51 +08:00
parent de4e419787
commit b43ea0c3b6
5 changed files with 11 additions and 9 deletions

View File

@@ -100,7 +100,7 @@ export default {
rules: {}
};
},
created() {
activated() {
this.getList();
},
methods: {
@@ -127,7 +127,6 @@ export default {
handleClaim(row) {
claimTask({taskId: row.taskId}).then(response => {
this.$modal.msgSuccess(response.msg);
this.getList();
this.$router.push({
path: '/work/todo'
})

View File

@@ -512,8 +512,8 @@ export default {
/** 返回页面 */
goBack() {
// 关闭当前标签页并返回上个页面
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.go(-1)
this.$tab.closePage(this.$route)
this.$router.back()
},
/** 接收子组件传的值 */
getData(data) {

View File

@@ -131,7 +131,7 @@ export default {
}
};
},
created() {
activated() {
this.getList();
},
methods: {

View File

@@ -160,6 +160,8 @@ export default {
},
created() {
this.getCategoryList();
},
activated() {
this.getList();
},
methods: {
@@ -225,15 +227,16 @@ export default {
},
/** 流程流转记录 */
handleFlowRecord(row) {
console.log("row =========> ", row)
this.$router.push({ path: '/work/detail',
this.$router.push({
path: '/work/detail',
query: {
definitionId: row.procDefId,
procInsId: row.procInsId,
deployId: row.deployId,
taskId: row.taskId,
finished: false
}})
}
})
},
/** 删除按钮操作 */
handleDelete(row) {

View File

@@ -121,7 +121,7 @@ export default {
rules: {}
};
},
created() {
activated() {
this.getList();
},
methods: {