提交 70c98974 编写于 作者: 雪洛's avatar 雪洛

fix(uni-app-x web): 修复iOS手势返回期间上一页面为空白的Bug

上级 79362a53
......@@ -42,7 +42,13 @@ function createRouterOptions(): RouterOptions {
history: initHistory(),
strict: !!__uniConfig.router!.strict,
routes: __uniRoutes as unknown as RouteRecordRaw[],
/**
* 传入scrollBehavior后,vue-router会将history.scrollRestoration设为manual。
* 导致safari无法保留上一页面的截图,进而导致在iOS手势返回期间上一页面处于白屏状态
*/
//#if !_X_
scrollBehavior,
//#endif
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册