优化称重连接

This commit is contained in:
zc
2026-04-07 16:37:51 +08:00
parent 45bd3bc8f5
commit a54a56865a
2 changed files with 134 additions and 69 deletions

View File

@@ -36,10 +36,20 @@ export function vmSend(materialProcess: string) {
/** @desc vm定时任务保存图片 */
export function getVmSaveImageTask() {
return http.get<any>(`/vm/start`)
return http.post<any>(`/vm/start`)
}
/** @desc vm关闭定时任务 */
export function getVmCloseTask() {
return http.get<any>(`/vm/stop`)
return http.post<any>(`/vm/stop`)
}
/** @desc 启动电子称连接线程 */
export function weighAHStart() {
return http.post<any>(`/api/weigh/ah/init`)
}
/** @desc 终止电子称连接线程 */
export function weighAHStop() {
return http.post<any>(`/api/weigh/ah/destroy`)
}