zhangwencui
2026-05-18 7da4d12ea36c879f0d0b98a8fcb9a74923310f11
回复误注释的扫码功能
已修改1个文件
4 ■■■ 文件已修改
src/pages/equipmentManagement/upkeep/add.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/equipmentManagement/upkeep/add.vue
@@ -205,8 +205,6 @@
  // 扫描二维码功能
  const startScan = () => {
    processScanResult("");
    return;
    if (isScanning.value) {
      showToast("正在扫描中,请稍候...");
      return;
@@ -251,7 +249,7 @@
  // 处理扫码结果并匹配设备
  const processScanResult = scanResult => {
    const deviceId = getDeviceIdByRegExp(scanResult);
    const matchedDevice = deviceOptions.value.find(item => item.id == 4);
    const matchedDevice = deviceOptions.value.find(item => item.id == deviceId);
    if (matchedDevice) {
      // 找到匹配的设备,自动填充