fix:修复任务组件报错

This commit is contained in:
zerosaturation 2026-07-16 11:34:37 +08:00
parent 99775f1d11
commit d4ee464bed
2 changed files with 6 additions and 2 deletions

View File

@ -179,7 +179,9 @@ function lockBodyScroll() {
// APP
const currentWebview = plus.webview.currentWebview()
if (currentWebview) {
pageScrollEnabled = currentWebview.isScrollEnabled()
// plus.webview.WebviewObject isScrollEnabled() HTML5+ API setStyle/getStyle
// webview scrollEnabled=true true modal
pageScrollEnabled = true
currentWebview.setStyle({
scrollIndicator: 'none',
bounce: 'none'

View File

@ -229,7 +229,9 @@ function lockBodyScroll() {
// APP
const currentWebview = plus.webview.currentWebview()
if (currentWebview) {
pageScrollEnabled = currentWebview.isScrollEnabled()
// plus.webview.WebviewObject isScrollEnabled() HTML5+ API setStyle/getStyle
// webview scrollEnabled=true true modal
pageScrollEnabled = true
currentWebview.setStyle({
scrollIndicator: 'none',
bounce: 'none'