diff --git a/ide/src/trace/component/setting/SpXPowerRecord.ts b/ide/src/trace/component/setting/SpXPowerRecord.ts index eec8535ba07023ccd69fe16b217c5b347361926e..2cf987de460cfaa77165bdd41c791ee2c12dccf1 100644 --- a/ide/src/trace/component/setting/SpXPowerRecord.ts +++ b/ide/src/trace/component/setting/SpXPowerRecord.ts @@ -77,9 +77,13 @@ export class SpXPowerRecord extends BaseElement { return; } else { Cmd.getPackage().then((packageList) => { + let appArr = []; if (packageList.length > 0) { - packageList.unshift('none'); - this.xPowerSelectV!.dataSource(packageList, '', true); + packageList.forEach((item) => { + appArr.push(item.replace(/^\t+/, '')); + }) + appArr.unshift('none'); + this.xPowerSelectV!.dataSource(appArr, '', true); this.getSelectedOption(); } else { this.xPowerSelectV!.dataSource([], '');