title: How to auto change page with vue-router?
body: <p>As the title suggests, there are two pages in the code. I want to show the page <strong>HelloWorld</strong> first then show next page <strong>myPage</strong> without any click.
  (maybe 2 sec after..) How to auto change a page with <code>vue-router</code>?</p>
  
  <p>I know should set some code in <code>setTimeout</code> function.</p>
  
  <p>index.js</p>
  
  <pre><code>import Vue from 'vue'
  import Router from 'vue-router'
  import HelloWorld from '@/components/HelloWorld'
  import myPage from '@/components/myPage'
  
  
  
  Vue.use(Router)
  
  
  export default new Router({
    routes: [{
        path: '/',
        name: 'HelloWorld',
        component: HelloWorld
      },
      {
        path: '/myPage',
        name: 'myPage',
        component: myPage
      }
    ],
  
  })
  </code></pre>