|
@@ -48,7 +48,7 @@
|
|
|
<div class="contentItemDescriptionTime">
|
|
|
{{
|
|
|
formateDateTimeFun(contentItem.createdTime) ||
|
|
|
- contentItem.createdTime
|
|
|
+ contentItem.createdTime
|
|
|
}}
|
|
|
</div>
|
|
|
<div>
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
active: 0,
|
|
|
- choosedChildIndex: 0,
|
|
|
+ choosedChildIndex: null,
|
|
|
titleStyle: {
|
|
|
fontSize: "10px"
|
|
|
},
|
|
@@ -96,20 +96,21 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ console.log("---");
|
|
|
+ },
|
|
|
mounted() {},
|
|
|
watch: {
|
|
|
// 第一次加载内容
|
|
|
- "learnChildList.length": {
|
|
|
+ learnChildList: {
|
|
|
handler(newValue, oldValue) {
|
|
|
- if (oldValue === 0 && newValue !== 0) {
|
|
|
- this.getContentList();
|
|
|
+ if (this.choosedChildIndex === null) {
|
|
|
+ this.choosedChildIndex = 0;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- active(val, oldVal) {
|
|
|
- console.log(val, oldVal);
|
|
|
- if (val !== oldVal) {
|
|
|
+ choosedChildIndex(newValue, oldValue) {
|
|
|
+ if (newValue !== oldValue) {
|
|
|
this.getContentList();
|
|
|
}
|
|
|
}
|
|
@@ -133,6 +134,7 @@ export default {
|
|
|
)
|
|
|
)
|
|
|
.then(res => {
|
|
|
+ console.log("--ContentList----ed-");
|
|
|
this.contentList = res.data;
|
|
|
this.finished = true;
|
|
|
})
|