feat: 对接oss

This commit is contained in:
AN
2025-04-24 22:23:08 +08:00
parent f446ac4387
commit a8be8df117
10 changed files with 371 additions and 0 deletions

View File

@ -85,6 +85,12 @@ export function isNull(value: any) {
return value === undefined || value === null || value === '' || value === 'undefined' || value === 'null';
}
/** 判断是否为图片类型 */
export function isImage(suffix: string) {
const imgSuffixList = ['.jpg', '.jpeg', '.png', '.gif', '.webp'];
return imgSuffixList.includes(suffix.toLowerCase());
}
/**
* 构造树型结构数据
*