Skip to content

Commit efd51bb

Browse files
committed
correct snapshotnav initial setters
1 parent 57fef05 commit efd51bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vue/src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
return {};
2424
},
2525
26-
mounted() {
26+
created() {
2727
this.setInitialSnapshotnav();
2828
},
2929
@@ -40,12 +40,12 @@ export default {
4040
setInitialSnapshotnav() {
4141
if (this.$route.params.hash) {
4242
if (['lg', 'xl'].includes(this.$vuetify.breakpoint.name)) {
43-
this.$store.commit('setSnapshotnav', false);
44-
} else {
4543
this.$store.commit('setSnapshotnav', true);
44+
} else {
45+
this.$store.commit('setSnapshotnav', false);
4646
}
4747
} else {
48-
this.$store.commit('setSnapshotnav', false);
48+
this.$store.commit('setSnapshotnav', true);
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)