Skip to content

Commit f8f4c52

Browse files
committed
fix: type
1 parent 1df03eb commit f8f4c52

File tree

1 file changed

+2
-2
lines changed
  • packages/taro-platform-harmony/src/runtime-framework/react

1 file changed

+2
-2
lines changed

packages/taro-platform-harmony/src/runtime-framework/react/native-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ export function createNativeComponentConfig (
442442
this.config = componentConfig
443443
app!.mount!(
444444
Component,
445-
compId.toString(),
445+
compId,
446446
() => this,
447447
() => {
448-
const el = document.getElementById(compId.toString())
448+
const el = document.getElementById(compId)
449449

450450
if (!el) {
451451
throw new Error(`没有找到组件实例。`)

0 commit comments

Comments
 (0)