Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Jan 13, 2025
1 parent 54ae2b1 commit c412656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uni-api/src/service/base/eventBus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export const $off = defineSyncApi<API_TYPE_OFF>(
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
Expand Down

0 comments on commit c412656

Please sign in to comment.