feat: delay mask import

This commit is contained in:
Simon
2026-01-28 17:16:39 +08:00
parent 142231a16c
commit 04d51c566d
2 changed files with 13 additions and 11 deletions

View File

@@ -15,8 +15,7 @@ export function initPageController() {
function getPC(): PageController {
if (!pageController) {
pageController = new PageController({ enableMask: true })
pageController.hideMask()
pageController = new PageController({ enableMask: false })
}
return pageController
}
@@ -35,7 +34,9 @@ export function initPageController() {
// })
if (shouldShowMask) {
await getPC().showMask()
const pc = getPC()
pc.initMask()
await pc.showMask()
} else {
// await getPC().hideMask()
if (pageController) {