@Observed 装饰器的实体构造函数操作ui失效
2024-10-26 本文已影响0人
wl520mxj
@Observed
class TestModel {
showUI: boolean = false
constructor() {
// 注意注意注意,这里不行
// setTimeout(() => {
// this.showUI = true
// }, 200)
}
}
@Observed
class TestModel {
showUI: boolean = false
constructor() {
// 注意注意注意,这里不行
// setTimeout(() => {
// this.showUI = true
// }, 200)
}
}