Skip to content

Commit

Permalink
fix(x): 调整UniElement的判断(根据特征判断)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Jul 24, 2024
1 parent 7fa4665 commit e43ad7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/uni-app-plus/src/service/api/plugin/uts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ let proxy: any
const callbacks: Record<string, Function> = {}

function isUniElement(obj: any) {
// @ts-expect-error
return typeof UniElement !== 'undefined' && obj instanceof UniElement
return typeof obj.getNodeId === 'function' && obj.pageId
}

function isComponentPublicInstance(instance: any) {
Expand Down

0 comments on commit e43ad7f

Please sign in to comment.