快乐的昕的电脑
2025-10-09 b123229592c4c1b0b074a25599caeb6b25f6532c
components/mold.vue
@@ -117,10 +117,10 @@
      },
      methods: {
            async fetchTools(searchKey) {
                // 使用 this.$post 发送 POST 请求,body 直接传字符串
                const res = await this.$post({
                    url: '/MesOrderSta/QueryTools',
                    data: searchKey // 直接传字符串
                    url: '/MesCutterLedger/QueryTools',
                    data: JSON.stringify({ searchKey }), // 关键点
                    headers: { 'Content-Type': 'application/json' }
                });
                if (res.status === 0) {
                    this.filteredTools = res.data.tbBillList.map(t => ({