Просмотр исходного кода

1、分类调整,公域课程调整

yfh 1 неделя назад
Родитель
Сommit
7db5ea7f1d
2 измененных файлов с 4 добавлено и 3 удалено
  1. 3 2
      src/api/course/userCourseCategory.js
  2. 1 1
      src/views/course/userCourse/public.vue

+ 3 - 2
src/api/course/userCourseCategory.js

@@ -70,10 +70,11 @@ export function getAllCourseCategoryList() {
 }
 
 
-export function getCatePidList() {
+export function getCatePidList(query) {
   return request({
     url: '/course/userCourseCategory/getCatePidList',
-    method: 'get'
+    method: 'get',
+    params: query
   })
 }
 

+ 1 - 1
src/views/course/userCourse/public.vue

@@ -596,7 +596,7 @@ export default {
   },
   created() {
     this.getList();
-    getCatePidList().then(response => {
+    getCatePidList({"isOpenClass":1}).then(response => {
       this.categoryOptions = response.data;
     });