Files
xk-client-wx/utils/utils.js
2026-05-30 16:54:01 +08:00

17 lines
490 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 false;
return true;
case 'open-im':
// return false;
return true;
default:
return false;
}
};