This commit is contained in:
clay
2022-02-26 13:57:26 +08:00
parent 8c0a3480de
commit fdca595a49
2 changed files with 7 additions and 7 deletions

View File

@@ -75,12 +75,8 @@ export default {
value: {
type: Object,
default: {
data: [{
content: "",
title: "",
publishTime: "2022-01-15 17:02:13",
imgurl: "http://sistfile.hchyun.cn/2022/01/15/b0904e59-25d4-433e-bd0f-e23940d6267d.png",
}]
//生命周期初始化问题
data: []
},
},
},
@@ -124,7 +120,10 @@ export default {
this.type = this.$route.query && this.$route.query.type
if (this.type != null&&this.type!=0){
data.id = this.value.secondId
}else {
console.log(this.value);
}
console.log(data);
getNode(data).then(res => {
this.value.data = res.rows
this.value.total = res.total