create ticket section

This commit is contained in:
HAM!DREZA
2024-06-28 00:10:21 +03:30
parent a3c5108151
commit 6b6b6d53aa
9 changed files with 535 additions and 188 deletions
+2 -5
View File
@@ -48,13 +48,10 @@ export const useCategoriesStore = defineStore('categories', {
actions: {
async index(page, rows) {
this.fetching = true
const params = { page, rows }
const { status, data } = await axios.get('/courseCategory', { params })
this.fetching = false
return data
if (status === 200) {
const map = (items, parent = null) => {
return items.map((item) => {
@@ -84,7 +81,7 @@ export const useCategoriesStore = defineStore('categories', {
name: id.value
})
//console.log('result', result);
//console.log('result', result);
return result;
},