update
This commit is contained in:
@@ -262,9 +262,14 @@ export const taskAdjust = async (item: any, readType: number = MessageRead.READ)
|
||||
if (item.msgTitle === '审批通知') {
|
||||
localStorage.setItem('SPDM_MSG_TASK_TYPE', 'flow');
|
||||
localStorage.setItem('SPDM_MSG_TASK_PARAMS', JSON.stringify(params));
|
||||
router.push({
|
||||
path: res.data.endTime ? TaskLink.Completed : TaskLink.Pending,
|
||||
});
|
||||
const path = res.data.endTime ? TaskLink.Completed : TaskLink.Pending;
|
||||
if (location.pathname === path) {
|
||||
router.go(0);
|
||||
} else {
|
||||
router.replace({
|
||||
path,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user