|
|
|
@ -831,16 +831,18 @@ export default { |
|
|
|
|
getArticle (columnIds) { |
|
|
|
|
const labelName = []; |
|
|
|
|
// 获取标签名称 |
|
|
|
|
this.labels.map((e) => { |
|
|
|
|
if (this.lableId.includes(e.id)) labelName.push(e.labelName); |
|
|
|
|
}); |
|
|
|
|
// this.labels.map((e) => { |
|
|
|
|
// if (this.lableId.includes(e.id)) labelName.push(encodeURI(e.labelName)); |
|
|
|
|
// }); |
|
|
|
|
const form = JSON.parse(JSON.stringify(this.form)) |
|
|
|
|
form.title = encodeURI(form.title) |
|
|
|
|
this.$post(this.api.newlyPublishedArticles, Util.rsa({ |
|
|
|
|
siteId: this.site, |
|
|
|
|
columnIds, |
|
|
|
|
pageNum: this.page, |
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
labelName, |
|
|
|
|
...this.form |
|
|
|
|
labelName: this.lableId, |
|
|
|
|
...form |
|
|
|
|
})) |
|
|
|
|
.then(({ data }) => { |
|
|
|
|
const articles = Util.removeTag(data.records); |
|
|
|
|