How to use Vue Router from Vuex state?
<p>In my components I've been using:</p>

<p><code>this.$router.push({ name: 'home', params: { id: this.searchText }});</code></p>

<p>To change route. I've now moved a method into my Vuex actions, and of course <code>this.$router</code> no longer works. Nor does <code>Vue.router</code>. So, how do I call router methods from the Vuex state, please?</p>