Commit 1e3bf4be authored by 王淑君's avatar 王淑君

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/api/manage.js
parents 2b08b5f9 5231d5fb
......@@ -7,7 +7,8 @@ const api = {
bdictionary: '/bdictionary',
banner: '/Banner',
label: '/BLabel',
bLesson: '/BLesson'
bLesson: '/BLesson',
file: '/file'
};
export default api;
......@@ -75,10 +76,21 @@ export function addBanner(parameter) {
params: parameter
});
}
// 新建banner上传图片
export function uploadBannerImg(parameter) {
return axios({
url: api.file + '/upload',
method: 'post',
params: parameter,
headers: {
'Content-Type': 'multipart/form-data'
}
});
}
// 查询课程列表
export function courselist(parameter) {
return axios({
url: api.bLesson + '/theLessonManage',
url: api.bLesson + '/findLessonAtBanner',
method: 'get',
params: parameter
});
......
......@@ -250,7 +250,7 @@
window.addEventListener('scroll', this.handleScroll, true);
// 查询所有课程分类初始化下拉选择
queryCourse({ corpId: 1, userId: 1 }).then(res => {
console.log('queryCourse:',res);
console.log('queryCourse:', res);
this.courseIdTreeSelect = res.data.courseList;
this.getCoursesIdList(this.courseIdTreeSelect);
......
This diff is collapsed.
......@@ -111,7 +111,7 @@ module.exports = {
port: 8000,
proxy: {
'/api': {
target: 'http://192.168.2.211:8081',
target: 'http://192.168.2.60:8081',
changeOrigin: true,
ws: true,
pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment