mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix(built-in): 避免在beforeRender action中操作路由或者location.href,构建后会出现卡死
This commit is contained in:
parent
fdf548d6c3
commit
9641b0dc67
@ -66,7 +66,10 @@ export const createRouter = (routes) => {
|
||||
document.body.removeChild(rootElement);
|
||||
}
|
||||
}
|
||||
next();
|
||||
// 避免在beforeRender action中操作路由或者location.href,构建后会出现卡死
|
||||
setTimeout(() => {
|
||||
next();
|
||||
}, 0);
|
||||
})
|
||||
|
||||
plugin.applyPlugins({
|
||||
|
Loading…
x
Reference in New Issue
Block a user