mirror of
https://github.com/openharmony/tools_previewer.git
synced 2026-07-19 14:23:32 -04:00
解决mock export type 场景失败问题
Signed-off-by: sambaby <chengshun3@h-partners.com>
This commit is contained in:
@@ -249,7 +249,10 @@ function getImportTypeAliasNameFromImportElements(importElementEntity: ImportEle
|
||||
if (!element) {
|
||||
continue;
|
||||
}
|
||||
if (`_${typeName}` === element.split('as')[1].trim()) {
|
||||
if (`_${typeName}` === element.trim()) {
|
||||
return `_${typeName}`;
|
||||
}
|
||||
if (element.includes(' as ') && `_${typeName}` === element.split('as')[1].trim()) {
|
||||
return `_${typeName}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user