diff --git a/packages/uni-api/src/service/base/eventBus.ts b/packages/uni-api/src/service/base/eventBus.ts index f547441ad66..dc3522c599a 100644 --- a/packages/uni-api/src/service/base/eventBus.ts +++ b/packages/uni-api/src/service/base/eventBus.ts @@ -69,10 +69,10 @@ export const $off = defineSyncApi( name.forEach((n) => { eventBus.off(n, callback) // 处理 x-ios js 层 off 原生层 on 的事件 - // @ts-expect-error if ( __X__ && __PLATFORM__ === 'app' && + // @ts-expect-error typeof __uniappx__nativeEventBus !== 'undefined' ) { // @ts-expect-error