From 10429dfa9e6c5df71470c0d381851f854d22a872 Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Sun, 28 Apr 2024 10:36:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=A8=A1=E5=BC=8F=E6=B2=A1=E6=9C=89=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=B7=B3=E5=9B=9E=E5=88=97=E8=A1=A8=E9=A1=B5=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/guard/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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切换也会触发路由守卫 所以只记录第一次的状态