diff --git a/src/api/competitionManage.js b/src/api/competitionManage.js deleted file mode 100644 index 0531336a6..000000000 --- a/src/api/competitionManage.js +++ /dev/null @@ -1,9 +0,0 @@ -import request from '@/utils/request'; - -/** 获取实操列表(题库)*/ -export function getPracticeList() { - return request({ - url: `/api/v1/competitionPractical/competition`, - method: 'get' - }); -} diff --git a/src/api/race.js b/src/api/race.js index 13d7ecb91..b900388e5 100644 --- a/src/api/race.js +++ b/src/api/race.js @@ -24,3 +24,20 @@ export function updateRace(id, data) { data }); } + +/** 获取实操列表(题库)*/ +export function getPracticeList() { + return request({ + url: `/api/v1/competitionPractical/competition`, + method: 'get' + }); +} + +/** 获取单个实操详情(题库)*/ +export function getPracticeByIdBasic() { + return request({ + url: `/api/v1/competitionPractical/competition`, + method: 'get' + }); +} + diff --git a/src/views/competitionManage/practiceList/create.vue b/src/views/competitionManage/practiceList/create.vue index bb9e54bbf..498c4d1a6 100644 --- a/src/views/competitionManage/practiceList/create.vue +++ b/src/views/competitionManage/practiceList/create.vue @@ -9,7 +9,7 @@