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

View File

@@ -359,12 +359,13 @@ export default {
}
getNode(data).then(res => {
console.log(res, "res值")
console.log(this.type);
if (this.type == 2 || this.type == 4) {
this.contextData = {
data: res.rows,
total: res.total,
pageNum: data.pageNum,
navId: this.navId,
navId: menu.encodeId,
secondId: this.secondId,
}
} else if (this.type == 1) {