修改articles字段

This commit is contained in:
小海
2020-04-16 18:34:23 +08:00
parent f85973f4c8
commit 6b84118d16
5 changed files with 8 additions and 5 deletions

View File

@@ -124,5 +124,8 @@
}
}
},
"defaultProject": "admin"
"defaultProject": "admin",
"cli": {
"analytics": false
}
}

View File

@@ -1,6 +1,6 @@
export class Category {
id: number;
name: string;
articles: string;
articles?: number[];
size?: number;
}

View File

@@ -1,6 +1,6 @@
export class Tag {
id?: number;
name: string;
articles?: string;
articles?: number[];
size: number;
}

View File

@@ -23,7 +23,7 @@
<td>{{category.id}}</td>
<td class="text-truncate" style="max-width: 150px">{{category.name}}</td>
<td>{{category.articles}}</td>
<td><span class="badge badge-success">{{category.articles.split(",").length - 1}}</span>
<td><span class="badge badge-success">{{category.articles.length}}</span>
</td>
<td>

View File

@@ -22,7 +22,7 @@
<td>{{tag.id}}</td>
<td class="text-truncate" style="max-width: 150px" [title]="tag.name">{{tag.name}}</td>
<td>{{tag.articles}}</td>
<td><span class="badge badge-success">{{tag.articles.split(',').length - 1}}</span></td>
<td><span class="badge badge-success">{{tag.articles.length}}</span></td>
<td>
<a [href]="'../tag?name='+tag.name">