报错navigateTo:fail url not in app.json
index.wxml
<button bindtap=“goLogin”>登录页面</button>
<navigator url=“login” hover-class=“navigator-hover”>
<button type=“default”>登录页面</button>
</navigator>
index.js
goLogin:function(event) {
wx.navigateTo({
url: “login”
});
}
app.json
“pages”:[
“pages/index/index”,
“pages/login/login”,
“pages/logs/logs”
],
两种跳转方式都报错,请问怎么回事?