This commit is contained in:
2026-01-22 19:15:14 +08:00
parent 82163ea47a
commit 557a3368a1

View File

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