head.vue
getMenu(){//获取菜单
getCategory({
params:{}
}).then((response)=> {
console.log('getCategory~~~~~~~~~~~~~~~~~~~~~~~~~~~')
console.log(response)
this.allMenuLabel = response.data
this.allMenuLabel = response.data 加results: this.allMenuLabel = response.data.results
Django REST framework课程视频,RESTFul API前后端分离开发
了解课程