Skip to content

Commit 3b7a124

Browse files
committed
fix: 修复UniElement的uniPage获取不准确的Bug
1 parent ae0774b commit 3b7a124

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/uni-components/src/helpers/UniElement.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export class UniElement extends HTMLElement {
2626
constructor() {
2727
super()
2828
this.__isUniElement = true
29-
// TODO 部分组件需要在构造器内访问uniPage属性,是否合理?
30-
this._page = getCurrentPage()?.$vm?.$page
3129
}
3230

3331
attachVmProps(props: Record<string, any>) {

0 commit comments

Comments
 (0)