title: VueJs get url query
body: <p>I'm developing a website with vuejs and at this moment I'm with a problem, I need to get the URL query (page) from a URL like this websitename.com/user/?page=1 but the <code>this.$router.query.page</code> gives me an error (Uncaught TypeError: Cannot read property 'page' of undefined)</p>
  <p>Does someone know something about this problem and can help me?</p>
  <p>PS: I can set the query page using</p>
  <pre><code>this.$router.push({name: 'userIndex', query: { page: '123' } });
  </code></pre>
  <p>and I can get the URL normal params like the</p>
  <pre><code>userID -&gt; (websitename.com/user/:userId | websitename.com/user/1)
  </code></pre>
  <p>but I can't get any query parameter.</p>