create ticket section
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user