最近任务移除场景,动效内容优化

Signed-off-by: yongxinggong <gongyongxing@huawei.com>
This commit is contained in:
yongxinggong 2022-08-27 17:09:33 +08:00
parent 50af2d6059
commit 252466bdb3

View File

@ -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', []);