From efca4a5f15879ea5bdc6cacdee2dbce3e58dba77 Mon Sep 17 00:00:00 2001 From: yfwang6 Date: Wed, 13 Jul 2022 18:29:43 +0800 Subject: [PATCH] wangyongfei6@huawei.com add unique id of component tip Signed-off-by: yfwang6 Change-Id: Iac1bcc14c1ebab085f66e1113a28397ae513b4b6 --- compiler/src/process_component_build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/process_component_build.ts b/compiler/src/process_component_build.ts index ab45745..df2a2a0 100644 --- a/compiler/src/process_component_build.ts +++ b/compiler/src/process_component_build.ts @@ -1004,7 +1004,7 @@ function addComponentAttr(temp: any, node: ts.Identifier, lastStatement: any, } if (propName === 'id') { - const literalString = temp.arguments[0].text; + const literalString: string = temp.arguments[0].text; const rLine: number = posOfNode.line + line; const rCol: number = posOfNode.character + col; const projectPath: string = projectConfig.projectPath;