fix: 修复表单编辑模式没有自动跳回列表页的bug
This commit is contained in:
@ -38,7 +38,7 @@ function createPageGuard(router: Router) {
|
||||
// Notify routing changes
|
||||
setRouteChange(to);
|
||||
const toPath = to.path;
|
||||
if (/createFlow|approveFlow|createForm|viewForm/.test(toPath)) {
|
||||
if (/createFlow|approveFlow|createForm|viewForm|updateForm/.test(toPath)) {
|
||||
// 记录从哪里来的 关闭页面的时候好跳回去
|
||||
if(!window.fcd.routeBackMapping[to.path]){
|
||||
// tab切换也会触发路由守卫 所以只记录第一次的状态
|
||||
|
||||
Reference in New Issue
Block a user