引入暂停、继续检测接口
This commit is contained in:
@@ -45,4 +45,4 @@ export const getTableData = (params: {
|
||||
index: number,
|
||||
}) => {
|
||||
return http.post("/result/resultData/", params, {loading: false});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ export const startTest = (params) => {
|
||||
* 暂停正式检测
|
||||
* @param params
|
||||
*/
|
||||
export const pauseTest = (params) => {
|
||||
return http.post(`/test/pauseTest`, params, {loading: false})
|
||||
export const pauseTest = () => {
|
||||
return http.get(`/test/closePreTest`, params, {loading: false})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,5 +30,5 @@ export const pauseTest = (params) => {
|
||||
* @param params
|
||||
*/
|
||||
export const resumeTest = (params) => {
|
||||
return http.post(`/test/resumeTest`, params, {loading: false})
|
||||
return http.post(`/prepare/restartTemTest/`, params, {loading: false})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user