From c2fff089f0761d14afa0ec32436ba4dd2c2f98a7 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Sun, 11 May 2025 23:37:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E8=89=BA=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/crafts.ts | 2 ++ src/components/home/Tube/index.vue | 44 ++++++++++++++++++++++++++++++++++++-- src/stores/homeStore.ts | 2 +- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/src/apis/crafts.ts b/src/apis/crafts.ts index 89caeeb..64af207 100644 --- a/src/apis/crafts.ts +++ b/src/apis/crafts.ts @@ -17,6 +17,8 @@ export const delCraft = (ids: string): Promise => http.delete(`/crafts/${i // 开始执行工艺 export const startCraft = (params: { heatId: string }): Promise => http.post(`/crafts/start`, params) +export const pauseCraft = (params: { heatId: string }): Promise => http.post(`/crafts/pause`, params) +export const resumeCraft = (params: { heatId: string }): Promise => http.post(`/crafts/resume`, params) export const stopCraft = (params: { heatId: string }): Promise => http.post(`/crafts/stop`, params) diff --git a/src/components/home/Tube/index.vue b/src/components/home/Tube/index.vue index b245e03..e4716c7 100644 --- a/src/components/home/Tube/index.vue +++ b/src/components/home/Tube/index.vue @@ -1,4 +1,5 @@