修改缩略图
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/** 构建图片预览 URL,自动拼接 /static 前缀和缩放参数 */
|
||||
export function buildImagePreviewUrl(url: string): string {
|
||||
const cleanPath = url.startsWith('/') ? url.slice(1) : url;
|
||||
return `/static/${cleanPath}&w=300&q=50`;
|
||||
}
|
||||
Reference in New Issue
Block a user