修改articles字段
This commit is contained in:
@@ -124,5 +124,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultProject": "admin"
|
"defaultProject": "admin",
|
||||||
|
"cli": {
|
||||||
|
"analytics": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
export class Category {
|
export class Category {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
articles: string;
|
articles?: number[];
|
||||||
size?: number;
|
size?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export class Tag {
|
export class Tag {
|
||||||
id?: number;
|
id?: number;
|
||||||
name: string;
|
name: string;
|
||||||
articles?: string;
|
articles?: number[];
|
||||||
size: number;
|
size: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<td>{{category.id}}</td>
|
<td>{{category.id}}</td>
|
||||||
<td class="text-truncate" style="max-width: 150px">{{category.name}}</td>
|
<td class="text-truncate" style="max-width: 150px">{{category.name}}</td>
|
||||||
<td>{{category.articles}}</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>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<td>{{tag.id}}</td>
|
<td>{{tag.id}}</td>
|
||||||
<td class="text-truncate" style="max-width: 150px" [title]="tag.name">{{tag.name}}</td>
|
<td class="text-truncate" style="max-width: 150px" [title]="tag.name">{{tag.name}}</td>
|
||||||
<td>{{tag.articles}}</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>
|
<td>
|
||||||
|
|
||||||
<a [href]="'../tag?name='+tag.name">
|
<a [href]="'../tag?name='+tag.name">
|
||||||
|
|||||||
Reference in New Issue
Block a user