|
@@ -31,7 +31,7 @@
|
|
|
<div>
|
|
|
{{
|
|
|
formateDateTimeFun(contentItem.createdTime) ||
|
|
|
- contentItem.createdTime
|
|
|
+ contentItem.createdTime
|
|
|
}}
|
|
|
</div>
|
|
|
<div>
|
|
@@ -81,6 +81,12 @@ export default {
|
|
|
this.getContentList();
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ active(val, oldVal) {
|
|
|
+ if (val !== oldVal) {
|
|
|
+ console.log("--active--" + this.active);
|
|
|
+ this.getContentList();
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -94,6 +100,12 @@ export default {
|
|
|
let path = {
|
|
|
categoryId: this.learnChildList[this.choosedChildIndex].id
|
|
|
};
|
|
|
+ console.log(
|
|
|
+ "--active--" +
|
|
|
+ this.active +
|
|
|
+ "--categoryId--" +
|
|
|
+ this.learnChildList[this.choosedChildIndex].id
|
|
|
+ );
|
|
|
this.$_http
|
|
|
.get(
|
|
|
this.$pathParams(
|
|
@@ -103,8 +115,6 @@ export default {
|
|
|
)
|
|
|
.then(res => {
|
|
|
this.contentList = res.data;
|
|
|
- // 移除第一个
|
|
|
- this.contentList.shift();
|
|
|
console.log("--child--", this.contentList);
|
|
|
this.finished = true;
|
|
|
})
|