在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
uniapp开发微信小程序跳转出现navigateTo:fail page "pages/user/pages/user/address/address" is not found