объявить:
const store = useStore();
const equipmentTypes = reactive([]);
const getEquipmentTypes = computed(() => [...store.getters.equipmentTypes]);
watch(() => getEquipmentTypes, (val) => {
console.log('val - ', val);
});
watch(getEquipmentTypes, (val) => { console.log('val - ', val); }); Должно работать
Обсуждают сегодня