修复画廊分页bug

This commit is contained in:
2025-08-21 20:01:35 +08:00
parent 005b6a4c73
commit 0cc890f440
13 changed files with 1658 additions and 1333 deletions
+4 -4
View File
@@ -238,12 +238,12 @@ class RepositoryService {
}
}
// 按作者浏览作品
async getArtworksByArtist(artistName, offset = 0, limit = 20) {
// 获取作者作品
async getArtworksByArtist(artistName, offset = 0, limit = 50) {
try {
const stats = await this.scanRepository()
const artistArtworks = stats.artworks.filter(artwork =>
artwork.artist === artistName
artwork.artist.toLowerCase() === artistName.toLowerCase()
)
return {
@@ -327,7 +327,7 @@ class RepositoryService {
}
// 搜索作品
async searchArtworks(query, offset = 0, limit = 20) {
async searchArtworks(query, offset = 0, limit = 50) {
try {
const stats = await this.scanRepository()
const filtered = stats.artworks.filter(artwork =>