a***@gmail.com
a***@gmail.com
  • 发布:2024-02-24 17:28
  • 更新:2024-02-24 18:00
  • 阅读:308

跳转页面报错

分类:uni-app

vue3项目 新建的 老项目不会 新建项目跳转报错 手动读this.$router为undefined

uni.navigateTo({  
    url:"/pages/index/index"  
});

VM271:1 Cannot read properties of undefined (reading 'push')
TypeError: Cannot read properties of undefined (reading 'push')

{errMsg: "navigateTo:fail Cannot read properties of undefined (reading 'push')"}

2024-02-24 17:28 负责人:无 分享
已邀请:
a***@gmail.com

a***@gmail.com (作者)

找到问题了 只有一个路由的情况下 不存在this.$router

  • 皮皮糖

    我也遇到了问题,使用uni. navigateTo报错,是什么情况

    2024-05-08 11:08

  • 子沐君

    回复 皮皮糖: 今天08-05 也出现这个报错了 感觉有点离谱啊

    2024-08-05 09:09

要回复问题请先登录注册