|
|
@ -31,10 +31,15 @@ export default { |
|
|
|
}), |
|
|
|
props:{ |
|
|
|
tnid: Number, |
|
|
|
tnsource: String, |
|
|
|
editorMode: Boolean, |
|
|
|
debugMode: Boolean, |
|
|
|
}, |
|
|
|
mounted: function() { |
|
|
|
if (this.tnsource && this.tnsource=='inline'){ |
|
|
|
let data = JSON.parse(document.getElementById('vuedata').textContent); |
|
|
|
this.tnid = data.treenode; |
|
|
|
} |
|
|
|
this.getArticles(); |
|
|
|
this.$root.$on('updateData',(arg) => { |
|
|
|
console.log(arg); |
|
|
|