deploy v-1

This commit is contained in:
HAM!DREZA
2024-07-03 21:25:34 +03:30
parent 2b399d3bb1
commit ad7a4b839d
49 changed files with 1636 additions and 953 deletions
+4 -5
View File
@@ -46,12 +46,11 @@ export const useCategoriesStore = defineStore('categories', {
}
},
actions: {
async index(page, rows) {
async index() {
this.fetching = true
const params = { page, rows }
const { status, data } = await axios.get('/courseCategory', { params })
const {data} = await axios.get('/courseCategory')
this.fetching = false
return data
return data
if (status === 200) {
const map = (items, parent = null) => {
return items.map((item) => {
@@ -81,7 +80,7 @@ export const useCategoriesStore = defineStore('categories', {
name: id.value
})
//console.log('result', result);
return result;
},