src/views/equipmentManagement/ledger/index.vue
@@ -211,7 +211,7 @@ label: "操作", align: "center", fixed: 'right', width: 140, width: 150, operation: [ { name: "编辑", @@ -291,8 +291,8 @@ }; const showQRCode = async (row) => { // 你可以自定义二维码内容,比如 row.id 或 row.deviceName const qrContent = JSON.stringify(row); // 或 `${row.id}` // 直接使用URL,不要用JSON.stringify包装 const qrContent = proxy.javaApi + '/device-info?deviceId=' + row.id; qrCodeUrl.value = await QRCode.toDataURL(qrContent); qrRowData.value = row; qrDialogVisible.value = true;