diff --git a/.env.development b/.env.development index c8c89d1..600aee7 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'development' VITE_APP_TITLE = '无糖运营平台' -# VITE_APP_BASE_API = 'http://127.0.0.1:8080' -VITE_APP_BASE_API = 'http://39.106.16.162:8080' +VITE_APP_BASE_API = 'http://127.0.0.1:8080' +# VITE_APP_BASE_API = 'http://39.106.16.162:8080' diff --git a/src/api/user/chapter.js b/src/api/user/chapter.js index 7405f75..af516ec 100644 --- a/src/api/user/chapter.js +++ b/src/api/user/chapter.js @@ -1,11 +1,11 @@ import request from '@/utils/request' // 获取课程章节列表 export const getChaptersListApi = (params) => { - return request.get(`/chapter2/chapter?courseId=${params.id}`) + return request.get(`api/chapter2/chapter?courseId=${params.id}`) } // 添加课程章节 -export const addChaptersApi = (params) => request.post('/chapter2/add', params) +export const addChaptersApi = (params) => request.post('api/chapter2/add', params) // 删除课程章节 export const delChaptersApi = (id) => { - return request.delete(`/chapter2/delete/${id}`) + return request.delete(`api/chapter2/delete/${id}`) } diff --git a/src/api/user/object.js b/src/api/user/object.js index 80d6fa5..d8e55d1 100644 --- a/src/api/user/object.js +++ b/src/api/user/object.js @@ -1,6 +1,8 @@ import request from '@/utils/request' -// 获取目标类型 -export const getObjectType = () => request.get(`/api/objectives_type/list`) +// 添加显示目标类型 +export const getObjectType = (id) => { + return request.get(`/api/course_objectives/objectiveslist/${id}`) +} // 修改目标内容 export const updateContents = (params) => { return request.put(`/api/objective_contents/update`, params) diff --git a/src/layout/menu/index.vue b/src/layout/menu/index.vue index 062b37b..77abaec 100644 --- a/src/layout/menu/index.vue +++ b/src/layout/menu/index.vue @@ -20,7 +20,7 @@ -