feat: 用户操作日志.

This commit is contained in:
lijiahang
2023-11-01 18:57:53 +08:00
parent cfcb5cb7a8
commit eafe69ebca
45 changed files with 1255 additions and 157 deletions

View File

@@ -51,3 +51,10 @@ export function isExist(obj: any): boolean {
export function isWindow(el: any): el is Window {
return el === window;
}
/**
* 是否为移动端 ua
*/
export function isMobile(userAgent: string) {
return /Mobi|Android|iPhone/i.test(userAgent);
}