初始化项目模板
This commit is contained in:
1 parent
80fd6a1d4b
commit
b3a69a1f27
69 files changed
+11088
No files matched your search
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* 判断是否为移动端
|
||||
* @returns {Boolean} true为移动端
|
||||
*/
|
||||
export function useUsingMobile() {
|
||||
const isUsingMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
|
||||
return isUsingMobile;
|
||||
}
|
||||
Reference in new issue
Block a user