Browse Source

切换项目更新

ZaiZai 11 months ago
parent
commit
5fac105a9f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/tentative/material/sampling.vue

+ 4 - 0
src/views/tentative/material/sampling.vue

@@ -544,6 +544,10 @@ const formRfidChange = () => {
 const addEditFormModalClose = async () => {
     addEditFormModal.value = false
     addEditFormModel.value = {}
+    // 关闭设备
+    if (!isNullES(device)) {
+        await device.close()
+    }
 }
 
 //新增/编辑 表单