HarmonyOS 鸿蒙Next API9中跳转界面时出现显示Cannot find name 'router'。怎么回事?
HarmonyOS 鸿蒙Next API9中跳转界面时出现显示Cannot find name ‘router’。怎么回事?

更多关于HarmonyOS 鸿蒙Next API9中跳转界面时出现显示Cannot find name 'router'。怎么回事?的实战教程也可以访问 https://www.itying.com/category-93-b0.html
3 回复
先排查下是否引入吧
更多关于HarmonyOS 鸿蒙Next API9中跳转界面时出现显示Cannot find name 'router'。怎么回事?的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
没有导包?
在页面最前页追加
import router from '@ohos.router'

