This commit is contained in:
mohadese namavar
2024-06-16 00:22:14 +04:30
commit ec84dfd222
322 changed files with 77942 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
export const useCategoriesStore = defineStore('categories', {
state: () => {
return {
items: []
}
},
actions: {
async get() {
const { status, data } = await useFetch('/api/categories');
if (status.value == 'success')
this.items = data.value
},
}
})