uniapp开发微信小程序跳转出现navigateTo:fail page "pages/user/pages/user/address/address" is not found
Posted lwming
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了uniapp开发微信小程序跳转出现navigateTo:fail page "pages/user/pages/user/address/address" is not found相关的知识,希望对你有一定的参考价值。
在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的主要内容,如果未能解决你的问题,请参考以下文章