优化细节

This commit is contained in:
icssoa
2025-09-03 19:04:08 +08:00
parent 7791c47483
commit 6cebe34de4
8 changed files with 38 additions and 14 deletions

View File

@@ -635,6 +635,28 @@ export const isApp = (): boolean => {
return false;
};
/**
* 检查是否为App-IOS环境
* @returns 是否为App-IOS环境
*/
export const isAppIOS = (): boolean => {
// #ifdef APP-IOS
return true;
// #endif
return false;
};
/**
* 检查是否为App-Android环境
* @returns 是否为App-Android环境
*/
export const isAppAndroid = (): boolean => {
// #ifdef APP-ANDROID
return true;
// #endif
return false;
};
/**
* 检查是否为H5环境
* @returns 是否为H5环境