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' } });