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