11
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user