From c412656db2baf2d2f0493965e9d4b85abf15fc68 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 13 Jan 2025 13:04:30 +0800 Subject: [PATCH] fix: type error --- packages/uni-api/src/service/base/eventBus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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