fix: 修复了一些东西,新增了方法

This commit is contained in:
2025-08-30 14:17:19 +08:00
parent 32d3669a50
commit 20bb923494
7 changed files with 52 additions and 20 deletions

View File

@@ -1,4 +1,15 @@
export function checkImageUrl(url) {
// 如果url包含http则返回url反之加上 data:image/jpeg;base64,
return url.includes('http') ? url : 'data:image/jpeg;base64,' + url
};
export function checkDev(key = '') {
// 判断某些模块是否开启
switch (key) {
case 'dev':
return true;
case 'open-im':
return false;
default:
return false;
}
};