Skip to content

Commit d664f4d

Browse files
committed
fix(x-ios): reLaunch 页面时候禁止页面侧滑 issues15961
1 parent a3702a2 commit d664f4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/uni-app-plus/src/x/framework/page/register.ts

+3
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ export function registerPage(
128128
const id = genWebviewId()
129129
const routeOptions = initRouteOptions(path, openType)
130130
const pageStyle = parsePageStyle(routeOptions)
131+
if (openType === 'reLaunch') {
132+
pageStyle.set('disableSwipeBack', true)
133+
}
131134
const nativePage = getPageManager().createPage(url, id.toString(), pageStyle)
132135
if (onCreated) {
133136
onCreated(nativePage)

0 commit comments

Comments
 (0)