mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 14:59:42 +00:00
最近任务移除场景,动效内容优化
Signed-off-by: yongxinggong <gongyongxing@huawei.com>
This commit is contained in:
parent
50af2d6059
commit
252466bdb3
@ -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', []);
|
||||
|
Loading…
Reference in New Issue
Block a user