diff --git a/src/utils/api.js b/src/utils/api.js index 8edaba2..33f1314 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -2,7 +2,7 @@ import Setting from "@/setting"; const host = Setting.apiBaseURL const uploadURL = Setting.uploadURL -const host1 = 'http://192.168.31.151:9000/' +const host1 = 'http://192.168.31.137:9000/' export default { @@ -144,14 +144,14 @@ export default { courseProfessionalClass: `nakadai/nakadai/subject/courseProfessionalClass`, //课程专业类 courseProfessional: `nakadai/nakadai/subject/courseProfessional`, //课程专业 //课程管理 - curriculumList: `nakadai/nakadai/curriculum/curriculumList`, //课程列表 - createCurriculum: `nakadai/nakadai/curriculum/createCurriculum`, //创建课程 - curriculumDetail: `nakadai/nakadai/curriculum/curriculumDetail`, //课程详情 - modifyCourse: `nakadai/nakadai/curriculum/modifyCourse`, //编辑课程 - delCourse: `nakadai/nakadai/curriculum/delCourse`, //单个、批量删除课程 - isShelves: `nakadai/nakadai/curriculum/isShelves`, //上下架课程 + curriculumList: `${host1}nakadai/nakadai/curriculum/curriculumList`, //课程列表 + createCurriculum: `${host1}nakadai/nakadai/curriculum/createCurriculum`, //创建课程 + curriculumDetail: `${host1}nakadai/nakadai/curriculum/curriculumDetail`, //课程详情 + modifyCourse: `${host1}nakadai/nakadai/curriculum/modifyCourse`, //编辑课程 + delCourse: `${host1}nakadai/nakadai/curriculum/delCourse`, //单个、批量删除课程 + isShelves: `${host1}nakadai/nakadai/curriculum/isShelves`, //上下架课程 getInternalProjectBySystemId: `occupationlab/projectManage/getInternalProjectBySystemId`, //根据系统id、项目权限获取系统内置项目 - checkConfig: `nakadai/nakadai/curriculum/checkConfig`, + checkConfig: `${host1}nakadai/nakadai/curriculum/checkConfig`, // 课程章节管理 addChapter: `nakadai/curriculum/chapter/addChapter`, //添加章节 editChapter: `nakadai/curriculum/chapter/editChapter`, //修改章节 diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue index f67f998..8281093 100644 --- a/src/views/course/AddCurriculum.vue +++ b/src/views/course/AddCurriculum.vue @@ -23,7 +23,7 @@