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 "pages/user/pages/user/address/address" is not found

解决方法:

在url前边加上/

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

跳转OK

uniapp开发微信小程序跳转出现navigateTo:fail page "pages/user/pages/user/address/address" is not found

上一篇:从零开发一款自己的小程序UI组件库(二)


下一篇:apache搭建不死鸟微信域名解封防封检测售卖系统php源代码