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 @@