From 252466bdb347b34d67c8ef533418bfa34f62fe35 Mon Sep 17 00:00:00 2001 From: yongxinggong Date: Sat, 27 Aug 2022 17:09:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E8=BF=91=E4=BB=BB=E5=8A=A1=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=9C=BA=E6=99=AF=EF=BC=8C=E5=8A=A8=E6=95=88=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yongxinggong --- .../main/ets/default/viewmodel/RecentMissionsViewModel.ets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/feature/recents/src/main/ets/default/viewmodel/RecentMissionsViewModel.ets b/feature/recents/src/main/ets/default/viewmodel/RecentMissionsViewModel.ets index 68a3fa6a..3b6382c4 100644 --- a/feature/recents/src/main/ets/default/viewmodel/RecentMissionsViewModel.ets +++ b/feature/recents/src/main/ets/default/viewmodel/RecentMissionsViewModel.ets @@ -104,6 +104,10 @@ export class RecentMissionsViewModel { if (!isClickDelBtn && missionId != -1) { await amsMissionManager.clearMission(missionId); this.mRecentMissionsList = await amsMissionManager.getRecentMissionsList(); + this.mRecentMissionsList = AppStorage.Get('recentMissionsList'); + this.mRecentMissionsList = this.mRecentMissionsList.filter((item) => { + return item.missionId != missionId; + }); } else { this.mRecentMissionsList = []; AppStorage.SetOrCreate('recentMissionsList', []);