diff --git a/DownloadNotification/entry/src/main/ets/pages/MainPage.ets b/DownloadNotification/entry/src/main/ets/pages/MainPage.ets index 7ed7a568f5b24f8a26ac024590c92591acd12202..b8985a8ce433d464162eecba00ce10142a6862b4 100644 --- a/DownloadNotification/entry/src/main/ets/pages/MainPage.ets +++ b/DownloadNotification/entry/src/main/ets/pages/MainPage.ets @@ -194,7 +194,7 @@ struct MainPage { this.downloadProgress = 0; clearInterval(this.interval); this.downloadStatus = DOWNLOAD_STATUS.INITIAL; - notification.cancel(CommonConstants.NOTIFICATION_ID); + await notification.cancel(CommonConstants.NOTIFICATION_ID); } /**