|
@@ -934,7 +934,7 @@ export default {
|
|
|
this.taskCount = this.dyList2[0].taskList[0].id;
|
|
|
this.navId =
|
|
|
this.dyList2[0].id + "-" + this.dyList2[0].taskList[0].id;
|
|
|
- this.$forceUpdate();
|
|
|
+ this.$forceUpdate();
|
|
|
// this.sInfo = res.data[0][0];
|
|
|
// this.chapInfo = JSON.parse(res.data[0][0].chapters);
|
|
|
// var chapters = JSON.parse(res.data[0][0].chapters);
|
|
@@ -1158,6 +1158,7 @@ export default {
|
|
|
}
|
|
|
this.dyList = dyList;
|
|
|
this.userAarray = res.data[1];
|
|
|
+ this.lookWork()
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -1544,13 +1545,21 @@ export default {
|
|
|
// );
|
|
|
},
|
|
|
},
|
|
|
- created() {
|
|
|
- this.page = 1;
|
|
|
+ watch: {
|
|
|
+ uid(newValue, oldValue) {
|
|
|
+ this.getCourseDetail();
|
|
|
+ this.getClass();
|
|
|
+ this.getGroup();
|
|
|
+ this.getWorks();
|
|
|
+ // this.lookWork();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
this.getCourseDetail();
|
|
|
this.getClass();
|
|
|
this.getGroup();
|
|
|
this.getWorks();
|
|
|
- this.lookWork();
|
|
|
+ // this.lookWork();
|
|
|
},
|
|
|
};
|
|
|
</script>
|