From 749b366b2af987479d3e13a3dd1a478781211bb7 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 13 十月 2025 15:36:44 +0800
Subject: [PATCH] BUG修改
---
components/mold.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/mold.vue b/components/mold.vue
index a7bea9e..e964aca 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -262,11 +262,11 @@
},
async fetchFormData() {
const payload = {
- workOrderNo: this.workOrderNo,
- machineNo: this.machineNo,
+ workOrderNo: this.workOrderNo && this.workOrderNo.trim() !== '' ? this.workOrderNo : null,
+ machineNo: this.machineNo && this.machineNo.trim() !== '' ? this.machineNo : null,
};
const res = await this.$post({
- url: '/MesCutterLedger/GetFormData',
+ url: '/api/MesCutterLedger/GetFormData', // 鍔犱笂 /api 鍓嶇紑
data: JSON.stringify(payload),
headers: { 'Content-Type': 'application/json' }
});
--
Gitblit v1.9.3