yujialong 3 days ago
parent 04ecdd22d8
commit 2f72fa5ad4
  1. 4
      src/pages/product/show/index.vue
  2. 4
      src/pages/station/preview/index.vue

@ -226,7 +226,9 @@ export default {
//
async getChapter () {
if (this.isCourse) {
let res = await this.$get(this.api.curriculumChapter + '/' + this.form.mall.associatedProduct)
let res = await this.$get(this.api.curriculumChapter, {
courseId: this.form.mall.associatedProduct
})
this.chapterList = res.chapterList
}
},

@ -487,7 +487,9 @@ export default {
//
async getChapter () {
if (this.courseId) {
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`);
let res = await this.$get(this.api.curriculumChapter, {
courseId: this.courseId
})
this.chapterList = res.chapterList;
const chapter = this.chapter === undefined ? 0 : +this.chapter
const section = this.section === undefined ? 0 : +this.section

Loading…
Cancel
Save