fix router in store

This commit is contained in:
wh1te909
2020-06-13 21:42:20 +00:00
parent 5cf8e3d4b4
commit 629571cb4e

View File

@@ -8,7 +8,7 @@ import automationModule from "./automation";
Vue.use(Vuex);
export default function ({ router }) {
export default function () {
const Store = new Vuex.Store({
modules: {
logs: logModule,
@@ -192,7 +192,7 @@ export default function ({ router }) {
Object.entries(input).length === 0 &&
input.constructor === Object
) {
router.push({ name: "InitialSetup" });
this.$router.push({ name: "InitialSetup" });
}
const output = [];
for (let prop in input) {