|
@@ -4569,9 +4569,7 @@ export default {
|
|
|
this.cid = res.data.courseId;
|
|
|
this.courseUserid = this.userid;
|
|
|
this.islogin = true;
|
|
|
- setTimeout(() => {
|
|
|
- this.selectCourseDetail();
|
|
|
- }, 1000);
|
|
|
+ this.selectCourseDetail();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.$message.error("网络不佳");
|
|
@@ -5943,9 +5941,11 @@ export default {
|
|
|
this.templateC.id = "123";
|
|
|
this.courseUserid = res.data[0][0].userid;
|
|
|
this.nbOrder = res.data[0][0].ordernumber;
|
|
|
- this.courseTypeId = []
|
|
|
- for (var i = 0; i < res.data[1].length; i++) {
|
|
|
- this.courseTypeId.push(res.data[1][i].typeid);
|
|
|
+ if(res.data[1].length){
|
|
|
+ this.courseTypeId = []
|
|
|
+ for (var i = 0; i < res.data[1].length; i++) {
|
|
|
+ this.courseTypeId.push(res.data[1][i].typeid);
|
|
|
+ }
|
|
|
}
|
|
|
console.log(this.courseTypeId);
|
|
|
// if (this.timer) clearInterval(this.timer);
|