uniapp开发微信小程序跳转出现navigateTo:fail page "pages/user/pages/user/address/address" is not found
时间:2019-08-11 00:58:26
收藏:0
阅读:1226
在app.json文件中pages中:
,{ "path" : "pages/user/address/address", "style" : {} }
在页面组件中:
uni.navigateTo({ url: ‘pages/user/address/address‘ })
结果:
解决方法:
在url前边加上/
uni.navigateTo({ url: ‘/pages/user/address/address‘ })
跳转OK
评论(0)