fix: 修复表单编辑模式没有自动跳回列表页的bug
This commit is contained in:
@ -38,7 +38,7 @@ function createPageGuard(router: Router) {
|
|||||||
// Notify routing changes
|
// Notify routing changes
|
||||||
setRouteChange(to);
|
setRouteChange(to);
|
||||||
const toPath = to.path;
|
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]){
|
if(!window.fcd.routeBackMapping[to.path]){
|
||||||
// tab切换也会触发路由守卫 所以只记录第一次的状态
|
// tab切换也会触发路由守卫 所以只记录第一次的状态
|
||||||
|
|||||||
Reference in New Issue
Block a user