launcher整改

Signed-off-by: zhengyongjie <15531316327@163.com>
This commit is contained in:
zhengyongjie 2024-08-16 16:53:52 +08:00
parent 60026cd6a6
commit 215e217445

View File

@ -244,12 +244,12 @@ class AmsMissionManager {
*/
async moveMissionToFront(missionId: number, winMode?: number) {
Log.showInfo(TAG, `moveMissionToFront missionId: ${missionId}`);
try {
winMode ? await missionManager.moveMissionToFront(missionId, { windowMode: winMode }) :
await missionManager.moveMissionToFront(missionId);
Log.showDebug(TAG, 'moveMissionToFront missionId end success');
} catch (err) {
Log.showError(TAG, `moveMissionToFront fail, err: ${JSON.stringify(err)}`);
try {
winMode ? await missionManager.moveMissionToFront(missionId, { windowMode: winMode }):
await missionManager.moveMissionToFront(missionId);
Log.showDebug(TAG, 'moveMissionToFront missionId end success');
} catch (err) {
Log.showError(TAG, `moveMissionToFront fail, err: ${JSON.stringify(err)}`);
}
}
}