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.定价) {