Skip to content

Commit

Permalink
feat: ios 调整 onshow 生命周期触发判断规则
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto-J committed Jun 17, 2024
1 parent 96251fd commit 527a877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/apiLifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
resetTracking,
} from '@vue/reactivity'
import { LifecycleHooks } from './enums'
import { ON_LOAD, isRootHook, isRootImmediateHookX } from '@dcloudio/uni-shared'
import { ON_LOAD, isRootHook, isRootImmediateHook } from '@dcloudio/uni-shared'
export { onActivated, onDeactivated } from './components/KeepAlive'

export function injectHook(
Expand All @@ -28,7 +28,7 @@ export function injectHook(
if (isRootHook(type) && target !== target.root) {
target = target.root

if (isRootImmediateHookX(type)) {
if (isRootImmediateHook(type)) {
// 作用域应该是组件还是页面?目前绑定的是页面
const proxy = target.proxy!
callWithAsyncErrorHandling(
Expand Down

0 comments on commit 527a877

Please sign in to comment.