From 34a39391b3aa3d4f93966e2bd26d735f42fc21d3 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Sat, 6 Sep 2025 12:36:25 +0800 Subject: [PATCH] =?UTF-8?q?OCR=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/OcrSearch/index.vue | 4 ++++ src/pages/inStorage/details.vue | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/OcrSearch/index.vue b/src/components/OcrSearch/index.vue index 23edb15..74f8681 100644 --- a/src/components/OcrSearch/index.vue +++ b/src/components/OcrSearch/index.vue @@ -89,6 +89,7 @@ export default { } catch (error) { console.error('关闭相机出错:', error) } finally { + this.$emit('ocrClose', false) this.showCamera = false this.cameraStarted = false this.resetFocusState() @@ -238,6 +239,7 @@ export default { content: '相机插件未准备好,请确保应用已正确安装相机插件,或尝试重启应用', showCancel: false, }) + this.$emit('ocrClose', false) return } } @@ -256,6 +258,7 @@ export default { icon: 'none', duration: 2000, }) + this.$emit('ocrClose', false) } }, @@ -327,6 +330,7 @@ export default { } catch (error) { console.error('关闭相机出错:', error) } finally { + this.$emit('ocrClose', false) this.showCamera = false this.cameraStarted = false this.resetFocusState() diff --git a/src/pages/inStorage/details.vue b/src/pages/inStorage/details.vue index ff4266e..6220b06 100644 --- a/src/pages/inStorage/details.vue +++ b/src/pages/inStorage/details.vue @@ -1,5 +1,5 @@