import router from '@ohos.router';

@Entry
@Component
struct TestHdcInstallPage {
  @State message: string = '测试页面';


  gotoCamera = () => {
    router.pushUrl({
      url: "pages/CameraVersion2"
    })
  }

  build() {
    Row() {
      Column() {
        Text(this.message)
          .fontSize(50)
          .fontWeight(FontWeight.Bold)
        Button("跳转到相机页面").onClick(() => {
            this.gotoCamera()
        })
      }
      .width('100%')
    }
    .height('100%')
  }
}