src/views/sampling/sampling/index.vue
@@ -803,11 +803,9 @@ try { // 请求接口并获取宽度值 const widthResponse = await getTxmkd(); // console.log("从 getTxmkd 返回的响应:", widthResponse); // 打印后端返回值 const barcodeWidth = `${Number(widthResponse.msg)}%` || "70%"; // 获取宽度值,默认使用 70% const jyxh = this.selectList.map((item) => item.jyxh); // console.log(this.selectList, 999); await this.$nextTick(); // 确保 DOM 更新