@Observed
class TestModel {
showUI: boolean = false
constructor() {
// 注意注意注意,这里不行
// setTimeout(() => {
// this.showUI = true
// }, 200)
}
}
@Observed
class TestModel {
showUI: boolean = false
constructor() {
// 注意注意注意,这里不行
// setTimeout(() => {
// this.showUI = true
// }, 200)
}
}
本文标题:@Observed 装饰器的实体构造函数操作ui失效
本文链接:https://www.haomeiwen.com/subject/wllydjtx.html
网友评论