mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-01 13:36:00 -04:00
Signed-off-by: fupengfei001 <fupengfei6@huawei.com>
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user