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'
          })

结果:

uniapp开发微信小程序跳转出现navigateTo:fail page

解决方法:

在url前边加上/

    uni.navigateTo({
            url: '/pages/user/address/address'
     })

跳转OK

转载于:https://www.cnblogs.com/lwming/p/11333534.html

你可能感兴趣的:(uniapp开发微信小程序跳转出现navigateTo:fail page "pages/user/pages/user/address/address" is not found...)