components/mold.vue
@@ -117,10 +117,10 @@ }, methods: { async fetchTools(searchKey) { // 传递对象,而不是字符串 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 => ({