当我尝试提交此表单时,收到错误消息“(未知)事件处理程序中的错误:TypeError:在CSRecorder.onQueryStateCompleted处无法读取null的属性'state'”。
这是我的购物车登录页面,与条纹进行通信。
<div class="row">
<div class="col-md-4 col-md-offset-4">
<h1>Sign In</h1>
{{#if hasErrors}}
<div class="alert alert-danger">
{{# each messages}}
<p>{{this}}</p>
{{each}}
</div>
{{/if}}
<form action="/user/signin.hbs" method="post">
<div class="form-group">
<label for="email">E-Mail</label>
<input type="text" id="email" name="email" class="form-control">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" class="form-control">
</div>
<input type="hidden" name="_csrf" values="{{csrfToken}}">
<button type="submit" class="btn btn-primary">Sign In</button>
</form>
<p>Don't have account? <a href="/user/signup.hbs">Sign up instead.</a></p>
</div>
</div>