mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
修改
This commit is contained in:
@@ -50,8 +50,8 @@ const courselist=function (data){
|
||||
/**
|
||||
* 首页新课程推荐列表
|
||||
*/
|
||||
const getRecommendList=function (data){
|
||||
return http.post(baseURL,`/recommend/page}`,data);
|
||||
const getRecommendList=function (pageNum,pageSize){
|
||||
return http.get(baseURL,`/recommend/studentPage?pageNum=${pageNum}&pageSize=${pageSize}`);
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
@@ -1340,10 +1340,7 @@ export default {
|
||||
},
|
||||
// 获取推荐课程list
|
||||
getRecommendList(){
|
||||
apiIndex.getRecommendList({
|
||||
pageNum:1,
|
||||
pageSize:3
|
||||
}).then((res) => {
|
||||
apiIndex.getRecommendList(1,3).then((res) => {
|
||||
if(res.code === 200){
|
||||
console.log(res.data.records);
|
||||
let courseIds = [];
|
||||
|
||||
Reference in New Issue
Block a user