fix:出版社被市场搜索历史数据二次覆盖的问题

This commit is contained in:
ShenQiLun 2026-07-01 14:23:10 +08:00
parent 6670b0c59a
commit 03102f1739

View File

@ -1927,16 +1927,16 @@ export default {
this.noIsbnCategoryIndex = 0
this.noIsbnSelectedCategoryValue = ''
}
//
// 20
if (pressList.length > 0) {
this.noIsbnPublisherOptions = pressList.map(function(item) { return item.showName })
this.noIsbnPublisherOptions = pressList.map(function(item) { return item.showName }).slice(0, 20)
this.noIsbnPublisherDropdownVisible = true
} else {
this.noIsbnPublisherOptions = []
}
//
// 20
if (authorList.length > 0) {
this.noIsbnAuthorOptions = authorList.map(function(item) { return item.showName })
this.noIsbnAuthorOptions = authorList.map(function(item) { return item.showName }).slice(0, 20)
this.noIsbnAuthorDropdownVisible = true
} else {
this.noIsbnAuthorOptions = []
@ -3230,9 +3230,13 @@ export default {
new: onSaleFacet ? onSaleFacet.newCount : 0,
sold: soldFacet ? (soldFacet.oldCount + soldFacet.newCount) : 0
}
//
that.noIsbnAuthorOptions = Array.from(authorSet).filter(Boolean).slice(0, 10)
that.noIsbnPublisherOptions = Array.from(publisherSet).filter(Boolean).slice(0, 10)
// API使
if (that.noIsbnAuthorOptions.length === 0) {
that.noIsbnAuthorOptions = Array.from(authorSet).filter(Boolean).slice(0, 10)
}
if (that.noIsbnPublisherOptions.length === 0) {
that.noIsbnPublisherOptions = Array.from(publisherSet).filter(Boolean).slice(0, 10)
}
//
that.$nextTick(() => {
if (that.calculatedNoIsbnPrice > 0) {