diff --git a/src/router/guard/index.ts b/src/router/guard/index.ts index cd55b98..18a80da 100644 --- a/src/router/guard/index.ts +++ b/src/router/guard/index.ts @@ -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切换也会触发路由守卫 所以只记录第一次的状态