|
|
@ -333,12 +333,12 @@ export default { |
|
|
|
// 文章详情 |
|
|
|
// 文章详情 |
|
|
|
getArticle() { |
|
|
|
getArticle() { |
|
|
|
const { id } = this.form |
|
|
|
const { id } = this.form |
|
|
|
id && this.$post(`${this.api.findByIdParnerArticle}?id=${id}`).then(({ data }) => { |
|
|
|
id ? this.$post(`${this.api.findByIdParnerArticle}?id=${id}`).then(({ data }) => { |
|
|
|
data.lableId = data.lableId ? data.lableId.split(',').map(e => +e) : [] |
|
|
|
data.lableId = data.lableId ? data.lableId.split(',').map(e => +e) : [] |
|
|
|
data.fileList.forEach(e => e.name = e.fileName) |
|
|
|
data.fileList.forEach(e => e.name = e.fileName) |
|
|
|
this.form = data |
|
|
|
this.form = data |
|
|
|
this.getClassification(1) |
|
|
|
this.getClassification(1) |
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => {}) : this.getClassification(1) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 获取所属分类 |
|
|
|
// 获取所属分类 |
|
|
|
getClassification(detail) { |
|
|
|
getClassification(detail) { |
|
|
|