From 5744fe2506fca3752a48dee26cffe47dcf957b2f Mon Sep 17 00:00:00 2001 From: guoapeng Date: Wed, 9 Jul 2025 21:32:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A5=E5=8F=A3=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/system.ts | 2 ++ src/components/formula/FormulaConfig.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apis/system.ts b/src/apis/system.ts index 94b8d2b..ca38c43 100644 --- a/src/apis/system.ts +++ b/src/apis/system.ts @@ -1,3 +1,4 @@ +import { FtMessage } from 'libs/message' import { createWebSocket } from 'libs/socket' import { nanoid } from 'nanoid' @@ -20,6 +21,7 @@ export async function sendCmd(resParams: System.SendCmdParams) { return res.rely } else { + FtMessage.error(`错误码: ${res.ackcode}, 描述: ${res.message}`) console.log(res) throw new Error(res.message) } diff --git a/src/components/formula/FormulaConfig.vue b/src/components/formula/FormulaConfig.vue index b0ddf46..9b8e44b 100644 --- a/src/components/formula/FormulaConfig.vue +++ b/src/components/formula/FormulaConfig.vue @@ -112,7 +112,7 @@ const handleSubmit = async () => { ElMessage.warning('禁止修改正在执行的配方信息!') return } - const formulaForm: Record = convertValuesToString(formData.value, 'name') + const formulaForm: Record = convertValuesToString(formData.value, 'name').filter() formulaStore .editFormula(formulaForm.formula_id, formulaForm as Formula.FormulaItem) .then(() => {