feat: added new products_carousel bock type

This commit is contained in:
2025-11-13 13:41:35 +03:00
parent 6f9855995d
commit f0837e5c94
22 changed files with 747 additions and 108 deletions

View File

@@ -0,0 +1,19 @@
import {defineStore} from "pinia";
import {apiGet} from "@/utils/http.js";
export const useAutocompleteStore = defineStore('autocomplete', {
state: () => ({
categories: null,
}),
actions: {
async fetchCategories() {
if (this.categories !== null) return;
const response = await apiGet('getAutocompleteCategories');
if (response.success) {
this.categories = response.data;
}
},
}
});