Updates.
This commit is contained in:
parent
4d55780b1a
commit
be1c5aa215
2 changed files with 2 additions and 15 deletions
|
|
@ -16,7 +16,6 @@ import {
|
||||||
} from "@/constants/analytics";
|
} from "@/constants/analytics";
|
||||||
import { cookieNames } from "@/constants/cookie-names";
|
import { cookieNames } from "@/constants/cookie-names";
|
||||||
import { useMainStore } from "@/store";
|
import { useMainStore } from "@/store";
|
||||||
import { mapStores, storeToRefs } from "pinia";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -164,8 +163,6 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
//...mapStores(useMainStore),
|
|
||||||
|
|
||||||
analyticsPageEvents() {
|
analyticsPageEvents() {
|
||||||
return analyticsPageEvents;
|
return analyticsPageEvents;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
import { mapActions, mapStores } from "pinia";
|
import { mapStores } from "pinia";
|
||||||
import { useMainStore } from "@/store";
|
import { useMainStore } from "@/store";
|
||||||
;
|
;
|
||||||
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
|
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
|
||||||
|
|
@ -24,20 +24,10 @@ export default {
|
||||||
const footerInfoBox = document.querySelector(".footer#infoBox");
|
const footerInfoBox = document.querySelector(".footer#infoBox");
|
||||||
return footerInfoBox ? footerInfoBox.offsetHeight : 0;
|
return footerInfoBox ? footerInfoBox.offsetHeight : 0;
|
||||||
},
|
},
|
||||||
dispatchStoreAction(type, payload, encodePayload = true) {
|
|
||||||
|
|
||||||
const store = useMainStore();
|
|
||||||
// Encode the payload if required
|
|
||||||
if (encodePayload) {
|
|
||||||
encodeUriData(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
return store[type](payload);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// store will be accessible globally as its id + 'Store'
|
// store will be accessible globally as its id + 'Store'
|
||||||
//...mapStores(useMainStore),
|
...mapStores(useMainStore),
|
||||||
|
|
||||||
navigationScenarios() {
|
navigationScenarios() {
|
||||||
return navigationScenarios;
|
return navigationScenarios;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue