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