From 080cc1e387ce04b186bba88e9877af8b16cd994a Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Wed, 1 Jul 2026 15:15:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:OCR=E8=AF=86=E5=88=AB=E5=87=BA=E4=BD=9C?= =?UTF-8?q?=E8=80=85=E5=90=8E=E8=87=AA=E5=8A=A8=E6=8C=89=E4=BD=9C=E8=80=85?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E8=8E=B7=E5=8F=96=E5=87=BA=E7=89=88=E7=A4=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/upload.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index 0b4b4c8..fe5215e 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -3393,7 +3393,13 @@ export default { const texts = ocrData.texts // 自动填充表单 if (texts.书名) this.noIsbnBookName = texts.书名 - if (texts.作者) this.noIsbnAuthor = texts.作者 + if (texts.作者) { + this.noIsbnAuthor = texts.作者 + // OCR识别出作者后,按作者过滤获取出版社 + this.$nextTick(function() { + this.fetchNoIsbnPressesByAuthor(this.noIsbnAuthor) + }.bind(this)) + } if (texts.出版社) this.noIsbnPublisher = texts.出版社 if (texts.出版时间) this.noIsbnPrintTime = texts.出版时间 if (texts.定价) {