mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-27 00:40:37 +00:00
Signed-off-by: fupengfei001 <fupengfei6@huawei.com>
This commit is contained in:
parent
e1a273720f
commit
2c034b1b0b
@ -57,7 +57,7 @@ export function generateIndex(): string {
|
||||
}
|
||||
|
||||
if (value.fileName.startsWith('ohos_')) {
|
||||
caseBody += `case '${value.fileName.split('ohos_')[1].replace('_', '.')}':\n\treturn ${functionName}();\n`;
|
||||
caseBody += `case '${value.fileName.split('ohos_')[1].replace(/_/g, '.')}':\n\treturn ${functionName}();\n`;
|
||||
} else {
|
||||
caseBody += `case '${value.fileName}':\n\treturn ${functionName}();\n`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user