|
@@ -51,14 +51,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
- if (e.id) {
|
|
|
|
- this.getDetail(e.id)
|
|
|
|
|
|
+ if (e.articleId) {
|
|
|
|
+ this.getDetail(e.articleId)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getDetail(id) {
|
|
|
|
|
|
+ getDetail(articleId) {
|
|
detail({
|
|
detail({
|
|
- articleId: id
|
|
|
|
|
|
+ articleId: articleId
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
if (res.data.data.templateType == 1) {
|
|
if (res.data.data.templateType == 1) {
|