接口调整,对接后端部分的v2版本
This commit is contained in:
@@ -38,8 +38,8 @@ export class CategoryComponent implements OnInit {
|
||||
|
||||
getCategories(needGetArticle: boolean) {
|
||||
this.apiService.categories().subscribe(data => {
|
||||
this.categoryList = data.result;
|
||||
this.category = data.result[0];
|
||||
this.categoryList = data.result.list;
|
||||
this.category = this.categoryList[0];
|
||||
if (needGetArticle) {
|
||||
this.getArticles(this.category.name);
|
||||
this.name = this.category.name;
|
||||
|
||||
Reference in New Issue
Block a user