store: store,
.this.$store
.this.$store
у компонента undefined.export const DataInput = {
store: store,
props: {
modelValue: {
type: String
},
classprefix: {
type: String,
required: true
},
title: {
type: String
}
},
emits: ['update:modelValue'],
data ()
{
return {
value: ''
}
},
computed: {
templateDir ()
{
return this.$options.store.state.config.bitrix.SITE_TEMPLATE_PATH;
}
},
this.$store.state.items
import {mapActions, mapGetters} from 'vuex'
methods:{
...mapActions([
//тут названия ваших actions
'GET_ITEMS'
]),
computed: {
...mapGetters([
//название ваших getters
'ITEMS'
]),
},