fix:修复任务组件报错
This commit is contained in:
parent
99775f1d11
commit
d4ee464bed
@ -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'
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user