wx.navigateTo()跳转路径有限制吗?
- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
当路径是"user"时就无法跳转
4 回复
navigateTo的URL自动加了路径是怎么回事啊??
报错信息里前两个/,我并没有添加过,请问怎么回事?
app.json:
"pages/FirstPage/FirstPage" , "pages/Register/Register" , "pages/login/login" , |
FirstPage.wxml
< button id = "register" type = "primary" bindtap = "jumpR" >注册</ button > |
FirstPage.js
jumpR: function (jump) { wx.navigateTo({ url: 'miniprogram/pages/Register/Register' }) }, |
报错信息:
navigateTo:fail page "pages/FirstPage/miniprogram/pages/Register/Register" is not found |