feat(v1.3.0): 图片编辑器(裁剪/旋转/图像大小/调色) + 批量水印 + AI生图 + 收藏体系 + 图片新窗口打开按钮 + 合拼拼图 + 返回顶部

This commit is contained in:
jinghui committed 2026-11-17 23:36:32 +08:00
1 parent e345456abf
commit 94ac94436c
46 files changed
+6521 -114

No files matched your search

+7 -4
View File
@@ -19,8 +19,9 @@ export async function search(libraryId, params = {}, options = {}) {
/**
* 获取图片总数
*/
export async function getCount(libraryId) {
return api.get(`/image/count?libraryId=${libraryId}`);
export async function getCount(libraryId, params = {}) {
const query = new URLSearchParams({ libraryId, ...params });
return api.get(`/image/count?${query}`);
}
/**
@@ -48,8 +49,10 @@ export async function getCacheMeta(libraryId) {
* 获取缩略图 URL
* 使用分片结构,不再需要 size 参数
*/
export function getThumbnailUrl(libraryId, filename) {
return `/api/image/thumbnail/${libraryId}/${filename}`;
export function getThumbnailUrl(libraryId, filename, version) {
const base = `/api/image/thumbnail/${libraryId}/${filename}`;
// version=文件 modified_at,编辑保存后变化以穿透浏览器缓存
return version ? `${base}?v=${version}` : base;
}
/**