!4342 【Sample】删除时钟重复部分

Merge pull request !4342 from 张宏/etsclock
This commit is contained in:
openharmony_ci 2024-04-26 07:02:23 +00:00 committed by Gitee
commit b46afae365
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -377,8 +377,4 @@ struct Clock {
clearInterval(this.intervalId)
Logger.info(TAG, `time93:${new Date(new Date().getTime())}`)
}
aboutToDisappear(){
clearInterval(this.intervalId)
}
}